1 | <?php |
||
18 | class Header implements ExcluderInterface |
||
19 | { |
||
20 | /** |
||
21 | * Request headers. |
||
22 | * |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $headers; |
||
26 | |||
27 | /** |
||
28 | * @param array|string|null $headers |
||
29 | * @param string|null $value |
||
30 | */ |
||
31 | public function __construct($headers = null, $value = null) |
||
41 | |||
42 | /** |
||
43 | * Add header. |
||
44 | * |
||
45 | * @param string $header |
||
46 | * @param string|null $value |
||
47 | * |
||
48 | * @return $this |
||
49 | */ |
||
50 | public function addHeader($header, $value = null) |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function isExcluded(ServerRequestInterface $request) |
||
76 | } |
||
77 |