Definition at line 5 of file ResponseFactoryInterface.php.
◆ createResponse()
Psr\Http\Message\ResponseFactoryInterface::createResponse |
( |
int |
$code = 200 , |
|
|
string |
$reasonPhrase = '' |
|
) |
| |
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
- ResponseInterface
The documentation for this interface was generated from the following file: