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

withBody(StreamInterface $body)

No description

int
getStatusCode()

No description

withStatus(int $code, string $reasonPhrase = '')

No description

string
getReasonPhrase()

No description

write(string $string)

Write data to the body of the response.

Details

__construct(ResponseInterface $response)

No description

Parameters

ResponseInterface $response

string getProtocolVersion()

No description

Return Value

string

Response withProtocolVersion(string $version)

No description

Parameters

string $version

Return Value

Response

array getHeaders()

No description

Return Value

array

bool hasHeader(string $name)

No description

Parameters

string $name

Return Value

bool

array getHeader(string $name)

No description

Parameters

string $name

Return Value

array

string getHeaderLine(string $name)

No description

Parameters

string $name

Return Value

string

Response withHeader(string $name, $value)

No description

Parameters

string $name
$value

Return Value

Response

Response withAddedHeader(string $name, $value)

No description

Parameters

string $name
$value

Return Value

Response

Response withoutHeader(string $name)

No description

Parameters

string $name

Return Value

Response

StreamInterface getBody()

No description

Return Value

StreamInterface

Response withBody(StreamInterface $body)

No description

Parameters

StreamInterface $body

Return Value

Response

int getStatusCode()

No description

Return Value

int

Response withStatus(int $code, string $reasonPhrase = '')

No description

Parameters

int $code
string $reasonPhrase

Return Value

Response

string getReasonPhrase()

No description

Return Value

string

Response write(string $string)

Write data to the body of the response.

Parameters

string $string

Return Value

Response