ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
HTTP Response Mock object. More...
Data Fields | |
$body | |
Making these public. More... | |
$status | |
Additional Inherited Members | |
![]() | |
__construct ($status=null, array $headers=null, $body=null) | |
Creates the response object. More... | |
getStatus () | |
Returns the current HTTP status code. More... | |
getStatusText () | |
Returns the human-readable status string. More... | |
setStatus ($status) | |
Sets the HTTP status code. More... | |
__toString () | |
Serializes the response object as a string. More... | |
![]() | |
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) | |
Replaces the body resource with a new stream or string. 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... | |
![]() | |
static | $statusCodes |
![]() | |
$status | |
$statusText | |
![]() | |
$body | |
$headers = [] | |
$httpVersion = '1.1' | |
This class exists to make the transition to sabre/http easier.
Definition at line 14 of file ResponseMock.php.
Sabre\HTTP\ResponseMock::$body |
Making these public.
Definition at line 19 of file ResponseMock.php.
Sabre\HTTP\ResponseMock::$status |
Definition at line 20 of file ResponseMock.php.