ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\HTTP\ResponseMock Class Reference

HTTP Response Mock object. More...

+ Inheritance diagram for Sabre\HTTP\ResponseMock:
+ Collaboration diagram for Sabre\HTTP\ResponseMock:

Data Fields

 $body
 Making these public. More...
 
 $status
 

Additional Inherited Members

- Public Member Functions inherited from Sabre\HTTP\Response
 __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...
 
- Public Member Functions inherited from Sabre\HTTP\Message
 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 Public Attributes inherited from Sabre\HTTP\Response
static $statusCodes
 
- Protected Attributes inherited from Sabre\HTTP\Response
 $status
 
 $statusText
 
- Protected Attributes inherited from Sabre\HTTP\Message
 $body
 
 $headers = []
 
 $httpVersion = '1.1'
 

Detailed Description

HTTP Response Mock object.

This class exists to make the transition to sabre/http easier.

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 14 of file ResponseMock.php.

Field Documentation

◆ $body

Sabre\HTTP\ResponseMock::$body

Making these public.

Definition at line 19 of file ResponseMock.php.

◆ $status

Sabre\HTTP\ResponseMock::$status

Definition at line 20 of file ResponseMock.php.


The documentation for this class was generated from the following file: