|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This interface represents a HTTP response. More...
Inheritance diagram for Sabre\HTTP\ResponseInterface:
Collaboration diagram for Sabre\HTTP\ResponseInterface:Public Member Functions | |
| getStatus () | |
| Returns the current HTTP status code. More... | |
| getStatusText () | |
| Returns the human-readable status string. More... | |
| setStatus ($status) | |
| Sets the HTTP status code. More... | |
Public Member Functions inherited from Sabre\HTTP\MessageInterface | |
| getBodyAsStream () | |
| Returns the body as a readable stream resource. More... | |
| getBodyAsString () | |
| Returns the body as a string. More... | |
| getBody () | |
| Returns the message body, as it's internal representation. More... | |
| setBody ($body) | |
| Updates the body resource with a new stream. More... | |
| getHeaders () | |
| Returns all the HTTP headers as an array. More... | |
| hasHeader ($name) | |
| Will return true or false, depending on if a HTTP header exists. More... | |
| getHeader ($name) | |
| Returns a specific HTTP header, based on it's name. More... | |
| getHeaderAsArray ($name) | |
| Returns a HTTP header as an array. More... | |
| setHeader ($name, $value) | |
| Updates a HTTP header. More... | |
| setHeaders (array $headers) | |
| Sets a new set of HTTP headers. More... | |
| addHeader ($name, $value) | |
| Adds a HTTP header. More... | |
| addHeaders (array $headers) | |
| Adds a new set of HTTP headers. More... | |
| removeHeader ($name) | |
| Removes a HTTP header. More... | |
| setHttpVersion ($version) | |
| Sets the HTTP version. More... | |
| getHttpVersion () | |
| Returns the HTTP version. More... | |
This interface represents a HTTP response.
Definition at line 12 of file ResponseInterface.php.
| Sabre\HTTP\ResponseInterface::getStatus | ( | ) |
Returns the current HTTP status code.
Implemented in Sabre\HTTP\Response, and Sabre\HTTP\ResponseDecorator.
| Sabre\HTTP\ResponseInterface::getStatusText | ( | ) |
Returns the human-readable status string.
In the case of a 200, this may for example be 'OK'.
Implemented in Sabre\HTTP\Response, and Sabre\HTTP\ResponseDecorator.
| Sabre\HTTP\ResponseInterface::setStatus | ( | $status | ) |
Sets the HTTP status code.
This can be either the full HTTP status code with human readable string, for example: "403 I can't let you do that, Dave".
Or just the code, in which case the appropriate default message will be added.
| string | int | $status |
InvalidArgumentException
Implemented in Sabre\HTTP\Response, and Sabre\HTTP\ResponseDecorator.
Referenced by Sabre\DAV\Sharing\Plugin\httpPost().
Here is the caller graph for this function: