1 | <?php declare(strict_types=1); |
||
16 | class PoolMiddleware implements MiddlewareInterface |
||
17 | { |
||
18 | use ErrorTrait; |
||
19 | |||
20 | /** |
||
21 | * @var Allocation |
||
22 | */ |
||
23 | private $allocation; |
||
24 | |||
25 | /** |
||
26 | * @param RequestInterface $request |
||
27 | * @param array $options |
||
28 | * @return CancellablePromiseInterface |
||
29 | * |
||
30 | * @First() |
||
31 | */ |
||
32 | 2 | public function pre( |
|
48 | |||
49 | /** |
||
50 | * @param ResponseInterface $response |
||
51 | * @param array $options |
||
52 | * @return CancellablePromiseInterface |
||
53 | * |
||
54 | * @Last() |
||
55 | */ |
||
56 | public function post( |
||
67 | } |
||
68 |