Elgg
Version 6.1
|
OK response builder. More...
Public Member Functions | ||||||
__construct ($content= '', int $status_code=ELGG_HTTP_OK, string $forward_url=null) | ||||||
Constructor. More... | ||||||
Public Member Functions inherited from Elgg\Http\Response | ||||||
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.
| ||||||
Additional Inherited Members | |
Protected Attributes inherited from Elgg\Http\Response | |
$content | |
int | $status_code |
string | $forward_url = null |
array | $headers = [] |
Exception | $exception = null |
bool | $secure_forward_url = true |
OK response builder.
Definition at line 8 of file OkResponse.php.
Elgg\Http\OkResponse::__construct | ( | $content = '' , |
|
int | $status_code = ELGG_HTTP_OK , |
||
string | $forward_url = null |
||
) |
Constructor.
mixed | $content | Response data |
int | $status_code | HTTP status code |
string | $forward_url | Forward URL |
Definition at line 19 of file OkResponse.php.