|
| getCookie ($name) |
|
| getCookieData ($name) |
|
| getCookies () |
|
| getHeader ($key) |
|
| getStatusCode () |
| Get the HTTP response code, null if not set. More...
|
|
| header ($string, $replace=true, $http_response_code=null) |
| Stores a HTTP header. More...
|
|
| headersSent () |
|
| setCookie ($name, $value, $expire=0, $options=[]) |
|
| statusHeader ($code) |
|
| clearCookie ($name, $options=[]) |
| Unset a browser cookie. More...
|
|
| getHeader ($key) |
| Get a response header. More...
|
|
| hasCookies () |
| Checks whether this request is performing cookie operations. More...
|
|
| header ($string, $replace=true, $http_response_code=null) |
| Output an HTTP header, wrapper for PHP's header() More...
|
|
| headersSent () |
| Test if headers have been sent. More...
|
|
| setCookie ($name, $value, $expire=0, $options=[]) |
| Set the browser cookie. More...
|
|
| statusHeader ($code) |
| Output an HTTP status code header. More...
|
|
|
static array | $setCookies = [] |
| Used to record set cookies, because PHP's setcookie() will happily send an identical Set-Cookie to the client. More...
|
|
Definition at line 187 of file WebResponse.php.
FauxResponse::getCookie |
( |
|
$name | ) |
|
FauxResponse::getCookieData |
( |
|
$name | ) |
|
FauxResponse::getCookies |
( |
| ) |
|
FauxResponse::getHeader |
( |
|
$key | ) |
|
- Parameters
-
string | $key | The name of the header to get (case insensitive). |
- Returns
- string|null The header value (if set); null otherwise.
Definition at line 233 of file WebResponse.php.
References headers.
FauxResponse::getStatusCode |
( |
| ) |
|
Get the HTTP response code, null if not set.
- Returns
- int|null
Definition at line 247 of file WebResponse.php.
References $code.
FauxResponse::header |
( |
|
$string, |
|
|
|
$replace = true , |
|
|
|
$http_response_code = null |
|
) |
| |
Stores a HTTP header.
- Parameters
-
string | $string | Header to output |
bool | $replace | Replace current similar header |
null | int | $http_response_code | Forces the HTTP response code to the specified value. |
Definition at line 198 of file WebResponse.php.
References code, headers, and list.
FauxResponse::headersSent |
( |
| ) |
|
FauxResponse::setCookie |
( |
|
$name, |
|
|
|
$value, |
|
|
|
$expire = 0 , |
|
|
|
$options = [] |
|
) |
| |
FauxResponse::statusHeader |
( |
|
$code | ) |
|
FauxResponse::$cookies = [] |
|
private |
The documentation for this class was generated from the following file: