ResponseFactory Class
Aurora\Http\Factory Namespace
Interfaces
- I ResponseFactoryInterface
Methods
createResponse
Create a new response
Parameters
-
int
$code
— HTTP status code; defaults to 200 -
string
$reasonPhrase
— Reason phrase to associate with status code
Return Value
\ResponseInterface
Signature
public function createResponse(int $code = 200, string $reasonPhrase = ''): Psr\Http\Message\ResponseInterface