Response
class Response extends Object implements IResponse
HttpResponse class.
Properties
string | $cookieDomain | ||
string | $cookiePath | ||
string | $cookieSecure | ||
string | $cookieHttpOnly | ||
bool | $warnOnBuffer |
Methods
No description
Sets HTTP response code.
Returns HTTP response code.
Sends a HTTP header and replaces a previous one.
Adds HTTP header.
Sends a Content-type HTTP header.
Redirects to a new URL. Note: call exit() after it.
Sets the number of seconds before a page cached on a browser expires.
Checks if headers have been sent.
Returns value of an HTTP header.
Returns a list of headers to sent.
No description
Sends a cookie.
Deletes a cookie.
No description
Details
at line 41
__construct()
No description
at line 63
void
setCode($code)
Sets HTTP response code.
at line 85
int
getCode()
Returns HTTP response code.
at line 98
void
setHeader($name, $value)
Sends a HTTP header and replaces a previous one.
at line 119
void
addHeader($name, $value)
Adds HTTP header.
at line 134
void
setContentType($type, $charset = NULL)
Sends a Content-type HTTP header.
at line 148
void
redirect($url, $code = self::S302_FOUND)
Redirects to a new URL. Note: call exit() after it.
at line 165
void
setExpiration($time)
Sets the number of seconds before a page cached on a browser expires.
at line 185
bool
isSent()
Checks if headers have been sent.
at line 197
mixed
getHeader($header, $default = NULL)
Returns value of an HTTP header.
at line 214
array
getHeaders()
Returns a list of headers to sent.
at line 228
static
date($time = NULL)
deprecated
deprecated
No description
at line 237
void
__destruct()
No description
at line 261
void
setCookie($name, $value, $time, $path = NULL, $domain = NULL, $secure = NULL, $httpOnly = NULL)
Sends a cookie.
at line 287
void
deleteCookie($name, $path = NULL, $domain = NULL, $secure = NULL)
Deletes a cookie.
at line 294
removeDuplicateCookies()
internal | @deprecated |
No description