class Response
| protected | $content | ||
| protected | $status | ||
| protected | $headers |
| __construct(string $content = '', int $status = 200, array $headers = array()) 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. | ||
| string | __toString() Converts the response object to string containing all headers and the response content. | |
| string | buildHeader(string $name, string $value) Returns the build header line. | |
| string | getContent() Gets the response content. | |
| int | getStatus() Gets the response status code. | |
| array | getHeaders() Gets the response headers. | |
| string|array | getHeader(string $header, bool $first = true) Gets a response header. |
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.
| string | $content | The content of the response |
| int | $status | The response status code |
| array | $headers | An array of headers |
Converts the response object to string containing all headers and the response content.
| string | The response with headers and content |
Returns the build header line.
| string | $name | The header name |
| string | $value | The header value |
| string | The built header line |
Gets the response content.
| string | The response content |
Gets the response status code.
| int | The response status code |
Gets the response headers.
| array | The response headers |
Gets a response header.
| string | $header | The header name |
| bool | $first | Whether to return the first value or all header values |
| string|array | The first header value if $first is true, an array of values otherwise |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/BrowserKit/Response.html