| 1 | <?php declare(strict_types=1); |
||
| 14 | final class DelayMiddleware implements MiddlewareInterface |
||
| 15 | { |
||
| 16 | use PostTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var LoopInterface |
||
| 20 | */ |
||
| 21 | private $loop; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * DelayMiddleware constructor. |
||
| 25 | * @param LoopInterface $loop |
||
| 26 | */ |
||
| 27 | 2 | public function __construct(LoopInterface $loop) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param RequestInterface $request |
||
| 34 | * @param array $options |
||
| 35 | * @return CancellablePromiseInterface |
||
| 36 | */ |
||
| 37 | 2 | public function pre(RequestInterface $request, array $options = []): CancellablePromiseInterface |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | public function priority(): int |
||
| 59 | } |
||
| 60 |