| 1 | <?php |
||
| 20 | class ServerResponse extends Response |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Construct a ServerResponse object with the given status code, reason phrase, version, headers & body. |
||
| 24 | * |
||
| 25 | * @param int $statusCode |
||
| 26 | * @param string $reasonPhrase = '' |
||
| 27 | * @param string $version = self::DEFAULT_VERSION |
||
| 28 | * @param array $headers = [] |
||
| 29 | * @param StreamInterface|null $body = null |
||
| 30 | */ |
||
| 31 | 3 | public function __construct($statusCode, $reasonPhrase = '', $version = self::DEFAULT_VERSION, array $headers = [], StreamInterface $body = null) |
|
| 39 | /** |
||
| 40 | * Send the server response |
||
| 41 | * |
||
| 42 | * @return null |
||
| 43 | */ |
||
| 44 | 1 | public function send() |
|
| 56 | } |
||
| 57 |