1 | <?php |
||
20 | /*final*/ class HeaderAppendPlugin implements Plugin |
||
21 | { |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $headers = []; |
||
26 | |||
27 | /** |
||
28 | * @param array $headers headers to add to the request |
||
29 | */ |
||
30 | 3 | public function __construct(array $headers) |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 1 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
|
46 | } |
||
47 |