Response
final class Response implements ResponseInterface (View source)
Methods
__construct(ResponseInterface $response)
No description
string
getProtocolVersion()
No description
withProtocolVersion(string $version)
No description
array
getHeaders()
No description
bool
hasHeader(string $name)
No description
array
getHeader(string $name)
No description
string
getHeaderLine(string $name)
No description
withHeader(string $name, $value)
No description
withAddedHeader(string $name, $value)
No description
withoutHeader(string $name)
No description
StreamInterface
getBody()
No description
int
getStatusCode()
No description
withStatus(int $code, string $reasonPhrase = '')
No description
string
getReasonPhrase()
No description
Details
__construct(ResponseInterface $response)
No description
string
getProtocolVersion()
No description
Response
withProtocolVersion(string $version)
No description
array
getHeaders()
No description
bool
hasHeader(string $name)
No description
array
getHeader(string $name)
No description
string
getHeaderLine(string $name)
No description
Response
withHeader(string $name, $value)
No description
Response
withAddedHeader(string $name, $value)
No description
Response
withoutHeader(string $name)
No description
StreamInterface
getBody()
No description
Response
withBody(StreamInterface $body)
No description
int
getStatusCode()
No description
Response
withStatus(int $code, string $reasonPhrase = '')
No description
string
getReasonPhrase()
No description
Response
write(string $string)
Write data to the body of the response.