Méthode | Description | |
---|---|---|
__construct ( Psr\Http\Message\ResponseInterface $response ) | set the response to be wrapped. | |
getBody ( ) : array | Returns the body. | |
getHeader ( $name ) | ||
getHeaderLine ( $name ) | ||
getHeaders ( ) | ||
getProtocolVersion ( ) | pass these down to the response given in the constructor. | |
getReasonPhrase ( ) | ||
getStatusCode ( ) | ||
hasHeader ( $name ) | ||
withAddedHeader ( $name, $value ) | ||
withBody ( Psr\Http\Message\StreamInterface $body ) | ||
withHeader ( $name, $value ) | ||
withProtocolVersion ( $version ) | ||
withStatus ( $code, $reasonPhrase = '' ) | ||
withoutHeader ( $name ) |
public __construct ( Psr\Http\Message\ResponseInterface $response ) | ||
$response | Psr\Http\Message\ResponseInterface |
public getProtocolVersion ( ) |
public withBody ( Psr\Http\Message\StreamInterface $body ) | ||
$body | Psr\Http\Message\StreamInterface |