Zend Framework
3.0
|
Public Member Functions | |||||||
__construct ($statusCode, $body= '', array $headers=[]) | |||||||
getStatusCode () | |||||||
Retrieve the HTTP response status code.
| |||||||
getBody () | |||||||
Retrieve the response body.
| |||||||
getHeaderLine ($name, $default=null) | |||||||
Retrieve a header (as a single line) from the response.Header name lookups MUST be case insensitive.Since the only header values the feed reader consumes are singular in nature, this method is expected to return a string, and not an array of values.
| |||||||
__construct | ( | $statusCode, | |
$body = '' , |
|||
array | $headers = [] |
||
) |
int | $statusCode | |
string | object | $body | |
array | $headers |
Exception\InvalidArgumentException |
getBody | ( | ) |
getHeaderLine | ( | $name, | |
$default = null |
|||
) |
Retrieve a header (as a single line) from the response.Header name lookups MUST be case insensitive.Since the only header values the feed reader consumes are singular in nature, this method is expected to return a string, and not an array of values.
string | $name | Header name to retrieve. |
mixed | $default | Default value to use if header is not present. |
Implements HeaderAwareResponseInterface.
getStatusCode | ( | ) |