You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
546 B
19 lines
546 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace Psr\Http\Message;
|
||
|
|
||
|
interface ResponseFactoryInterface
|
||
|
{
|
||
|
/**
|
||
|
* Create a new response.
|
||
|
*
|
||
|
* @param int $code HTTP status code; defaults to 200
|
||
|
* @param 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.
|
||
|
*
|
||
|
* @return ResponseInterface
|
||
|
*/
|
||
|
public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface;
|
||
|
}
|