class Response
Response object.
Methods
|
__construct(string $content = '', integer $status = 200, array $headers = array())
Constructor. |
||
| string |
__toString()
Converts the response object to string containing all headers and the response content. |
|
| string |
getContent()
Gets the response content. |
|
| integer |
getStatus()
Gets the response status code. |
|
| array |
getHeaders()
Gets the response headers. |
|
| string|array |
getHeader(string $header, Boolean $first = true)
Gets a response header. |
Details
at line 39
public
__construct(string $content = '', integer $status = 200, array $headers = array())
Constructor.
The headers array is a set of key/value pairs. If a header is present multiple times
then the value is an array of all the values.
at line 51
public string
__toString()
Converts the response object to string containing all headers and the response content.
at line 87
public string
getContent()
Gets the response content.
at line 99
public integer
getStatus()
Gets the response status code.
at line 111
public array
getHeaders()
Gets the response headers.
at line 124
public string|array
getHeader(string $header, Boolean $first = true)
Gets a response header.