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