1 | <?php |
||
17 | class HeaderAppendPlugin implements Plugin |
||
18 | { |
||
19 | private $headers = []; |
||
20 | |||
21 | /** |
||
22 | * @param array $headers headers to add to the request |
||
23 | */ |
||
24 | 3 | public function __construct(array $headers) |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 1 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
|
40 | } |
||
41 |