Elgg
Version 6.1
|
Public Member Functions | ||||||
setContent ($content= '') | ||||||
{Sets response body.
| ||||||
getContent () | ||||||
{Returns response body.
| ||||||
setException (\Exception $e) | ||||||
{Set an exception for this response.
| ||||||
getException () | ||||||
{Get the exception for this reponse.
| ||||||
setStatusCode (int $status_code) | ||||||
{Sets response HTTP status code.
| ||||||
getStatusCode () | ||||||
{Returns status code.
| ||||||
setForwardURL (string $forward_url=REFERRER) | ||||||
{Sets redirect URL.
| ||||||
getForwardURL () | ||||||
{Returns redirect URL.
| ||||||
setHeaders (array $headers=[]) | ||||||
{Sets additional response headers.
| ||||||
getHeaders () | ||||||
{Returns additional response headers.
| ||||||
isInformational () | ||||||
{Check if response is informational.
| ||||||
isSuccessful () | ||||||
{Check if response is successful.
| ||||||
isOk () | ||||||
{Check if response is OK.
| ||||||
isRedirection () | ||||||
{Check if response is redirection.
| ||||||
isClientError () | ||||||
{Check if response is client error.
| ||||||
isServerError () | ||||||
{Check if response is server error.
| ||||||
isNotModified () | ||||||
{Check if response has been modified.
| ||||||
Protected Attributes | |
$content | |
int | $status_code |
string | $forward_url = null |
array | $headers = [] |
Exception | $exception = null |
bool | $secure_forward_url = true |
Elgg\Http\Response::getContent | ( | ) |
{Returns response body.
Implements Elgg\Http\ResponseBuilder.
Definition at line 43 of file Response.php.
Elgg\Http\Response::getException | ( | ) |
{Get the exception for this reponse.
Implements Elgg\Http\ResponseBuilder.
Definition at line 58 of file Response.php.
Elgg\Http\Response::getForwardURL | ( | ) |
{Returns redirect URL.
Implements Elgg\Http\ResponseBuilder.
Definition at line 92 of file Response.php.
Elgg\Http\Response::getHeaders | ( | ) |
{Returns additional response headers.
Implements Elgg\Http\ResponseBuilder.
Definition at line 116 of file Response.php.
Elgg\Http\Response::getStatusCode | ( | ) |
{Returns status code.
Implements Elgg\Http\ResponseBuilder.
Definition at line 77 of file Response.php.
Elgg\Http\Response::isClientError | ( | ) |
{Check if response is client error.
Implements Elgg\Http\ResponseBuilder.
Definition at line 151 of file Response.php.
Elgg\Http\Response::isInformational | ( | ) |
{Check if response is informational.
Implements Elgg\Http\ResponseBuilder.
Definition at line 123 of file Response.php.
Elgg\Http\Response::isNotModified | ( | ) |
{Check if response has been modified.
Implements Elgg\Http\ResponseBuilder.
Definition at line 165 of file Response.php.
Elgg\Http\Response::isOk | ( | ) |
{Check if response is OK.
Implements Elgg\Http\ResponseBuilder.
Definition at line 137 of file Response.php.
Elgg\Http\Response::isRedirection | ( | ) |
{Check if response is redirection.
Implements Elgg\Http\ResponseBuilder.
Definition at line 144 of file Response.php.
Elgg\Http\Response::isServerError | ( | ) |
{Check if response is server error.
Implements Elgg\Http\ResponseBuilder.
Definition at line 158 of file Response.php.
Elgg\Http\Response::isSuccessful | ( | ) |
{Check if response is successful.
Implements Elgg\Http\ResponseBuilder.
Definition at line 130 of file Response.php.
Elgg\Http\Response::setContent | ( | $content = '' | ) |
{Sets response body.
mixed | $content | Content of the response as a scalar value or an array |
InvalidArgumentException |
Implements Elgg\Http\ResponseBuilder.
Definition at line 31 of file Response.php.
Elgg\Http\Response::setException | ( | \Exception | $e | ) |
{Set an exception for this response.
\Exception | $e | the exception for this response |
Implements Elgg\Http\ResponseBuilder.
Definition at line 50 of file Response.php.
Elgg\Http\Response::setForwardURL | ( | string | $forward_url = REFERRER | ) |
{Sets redirect URL.
string | $forward_url | Forward URL |
InvalidArgumentException |
Implements Elgg\Http\ResponseBuilder.
Definition at line 84 of file Response.php.
Elgg\Http\Response::setHeaders | ( | array | $headers = [] | ) |
{Sets additional response headers.
array | $headers | Headers |
Implements Elgg\Http\ResponseBuilder.
Definition at line 108 of file Response.php.
Elgg\Http\Response::setStatusCode | ( | int | $status_code | ) |
{Sets response HTTP status code.
int | $status_code | Status code |
RangeException |
Implements Elgg\Http\ResponseBuilder.
Definition at line 65 of file Response.php.
|
protected |
Definition at line 16 of file Response.php.
|
protected |
Definition at line 24 of file Response.php.
|
protected |
Definition at line 20 of file Response.php.
|
protected |
Definition at line 22 of file Response.php.
|
protected |
Definition at line 26 of file Response.php.
|
protected |
Definition at line 18 of file Response.php.