| 1 | <?php declare(strict_types=1); |
||
| 15 | final class DelayMiddleware implements MiddlewareInterface |
||
| 16 | { |
||
| 17 | use PostTrait; |
||
| 18 | use ErrorTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var LoopInterface |
||
| 22 | */ |
||
| 23 | private $loop; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * DelayMiddleware constructor. |
||
| 27 | * @param LoopInterface $loop |
||
| 28 | */ |
||
| 29 | 2 | public function __construct(LoopInterface $loop) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param RequestInterface $request |
||
| 36 | * @param array $options |
||
| 37 | * @return CancellablePromiseInterface |
||
| 38 | * |
||
| 39 | * @Second() |
||
| 40 | */ |
||
| 41 | 2 | public function pre( |
|
| 58 | } |
||
| 59 |