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