1 | <?php declare(strict_types=1); |
||
14 | class PoolMiddleware implements MiddlewareInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var Allocation |
||
18 | */ |
||
19 | private $allocation; |
||
20 | |||
21 | /** |
||
22 | * @param RequestInterface $request |
||
23 | * @param array $options |
||
24 | * @return CancellablePromiseInterface |
||
25 | */ |
||
26 | public function pre(RequestInterface $request, array $options = []): CancellablePromiseInterface |
||
39 | |||
40 | /** |
||
41 | * @param ResponseInterface $response |
||
42 | * @param array $options |
||
43 | * @return CancellablePromiseInterface |
||
44 | */ |
||
45 | public function post(ResponseInterface $response, array $options = []): CancellablePromiseInterface |
||
53 | |||
54 | /** |
||
55 | * @return int |
||
56 | */ |
||
57 | public function priority(): int |
||
61 | } |
||
62 |