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.
Returns HTTP valid date format.
No description
Sends a cookie.
Deletes a cookie.
Removes duplicate cookies from response.
Details
at line 43
__construct()
No description
at line 64
void
setCode($code)
Sets HTTP response code.
at line 82
int
getCode()
Returns HTTP response code.
at line 95
void
setHeader($name, $value)
Sends a HTTP header and replaces a previous one.
at line 116
void
addHeader($name, $value)
Adds HTTP header.
at line 131
void
setContentType($type, $charset = NULL)
Sends a Content-type HTTP header.
at line 145
void
redirect($url, $code = self::S302_FOUND)
Redirects to a new URL. Note: call exit() after it.
at line 162
void
setExpiration($time)
Sets the number of seconds before a page cached on a browser expires.
at line 181
bool
isSent()
Checks if headers have been sent.
at line 193
mixed
getHeader($header, $default = NULL)
Returns value of an HTTP header.
at line 210
array
getHeaders()
Returns a list of headers to sent.
at line 226
static string
date($time = NULL)
Returns HTTP valid date format.
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 298
void
removeDuplicateCookies()
internal |
Removes duplicate cookies from response.