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 |
| 2 | |
| 3 | namespace Dynart\Micro; |
| 4 | |
| 5 | /** |
| 6 | * Represents the HTTP response |
| 7 | */ |
| 8 | interface ResponseInterface { |
| 9 | /** |
| 10 | * Clears the headers |
| 11 | */ |
| 12 | public function clearHeaders(): void; |
| 13 | |
| 14 | /** |
| 15 | * Sets a header for the response |
| 16 | */ |
| 17 | public function setHeader(string $name, string $value): void; |
| 18 | |
| 19 | /** |
| 20 | * Returns with a header value by name |
| 21 | */ |
| 22 | public function header(string $name, mixed $default = null): mixed; |
| 23 | |
| 24 | /** |
| 25 | * Sends the headers then the given body content |
| 26 | */ |
| 27 | public function send(string $content = ''): void; |
| 28 | } |