\Psr\Http\MessageResponseFactoryInterface

Summary

Methods
Constants
createResponse()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

createResponse()

createResponse(int  $code = 200, string  $reasonPhrase = '') : \Psr\Http\Message\ResponseInterface

Create a new response.

Parameters

int $code

HTTP status code; defaults to 200

string $reasonPhrase

Reason phrase to associate with status code in generated response; if none is provided implementations MAY use the defaults as suggested in the HTTP specification.

Returns

\Psr\Http\Message\ResponseInterface —