Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php declare(strict_types=1); |
| 2 | /* |
| 3 | * This file is part of Aplus Framework HTTP Library. |
| 4 | * |
| 5 | * (c) Natan Felles <natanfelles@gmail.com> |
| 6 | * |
| 7 | * For the full copyright and license information, please view the LICENSE |
| 8 | * file that was distributed with this source code. |
| 9 | */ |
| 10 | namespace Framework\HTTP; |
| 11 | |
| 12 | /** |
| 13 | * Interface ResponseInterface. |
| 14 | * |
| 15 | * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages#http_responses |
| 16 | * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status |
| 17 | * @see https://datatracker.ietf.org/doc/html/rfc7231#section-6 |
| 18 | * |
| 19 | * @package http |
| 20 | */ |
| 21 | interface ResponseInterface extends MessageInterface |
| 22 | { |
| 23 | public function getStatusCode() : int; |
| 24 | |
| 25 | public function isStatusCode(int $code) : bool; |
| 26 | |
| 27 | public function getStatusReason() : string; |
| 28 | |
| 29 | public function getStatus() : string; |
| 30 | } |