HTTP response builder interface.
More...
HTTP response builder interface.
private
Definition at line 12 of file ResponseBuilder.php.
Elgg\Http\ResponseBuilder::getContent |
( |
| ) |
|
Elgg\Http\ResponseBuilder::getForwardURL |
( |
| ) |
|
Elgg\Http\ResponseBuilder::getHeaders |
( |
| ) |
|
Elgg\Http\ResponseBuilder::getStatusCode |
( |
| ) |
|
Elgg\Http\ResponseBuilder::isClientError |
( |
| ) |
|
Elgg\Http\ResponseBuilder::isInformational |
( |
| ) |
|
Elgg\Http\ResponseBuilder::isNotModified |
( |
| ) |
|
Elgg\Http\ResponseBuilder::isOk |
( |
| ) |
|
Elgg\Http\ResponseBuilder::isRedirection |
( |
| ) |
|
Elgg\Http\ResponseBuilder::isServerError |
( |
| ) |
|
Elgg\Http\ResponseBuilder::isSuccessful |
( |
| ) |
|
Elgg\Http\ResponseBuilder::setContent |
( |
|
$content = '' | ) |
|
Sets response body.
- Parameters
-
mixed | $content | Content of the response as a scalar value or an array |
- Returns
- self
- Exceptions
-
Implemented in Elgg\Http\OkResponse.
Elgg\Http\ResponseBuilder::setForwardURL |
( |
|
$forward_url = REFERRER | ) |
|
Sets redirect URL.
- Parameters
-
string | $forward_url | Forward URL |
- Returns
- self
- Exceptions
-
Implemented in Elgg\Http\OkResponse.
Elgg\Http\ResponseBuilder::setHeaders |
( |
array |
$headers = [] | ) |
|
Elgg\Http\ResponseBuilder::setStatusCode |
( |
|
$status_code = ELGG_HTTP_OK | ) |
|
Sets response HTTP status code.
- Parameters
-
int | $status_code | Status code |
- Returns
- self
- Exceptions
-
Implemented in Elgg\Http\OkResponse.
The documentation for this interface was generated from the following file: