Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | declare(strict_types=1); |
| 3 | /** |
| 4 | * Pop PHP Framework (https://www.popphp.org/) |
| 5 | * |
| 6 | * @link https://github.com/popphp/popphp-framework |
| 7 | * @author Nick Sagona, III <nick@popphp.org> |
| 8 | * @copyright Copyright (c) 2009-2026 Nick Sagona, III |
| 9 | * @license https://www.popphp.org/license New BSD License |
| 10 | */ |
| 11 | |
| 12 | /** |
| 13 | * @namespace |
| 14 | */ |
| 15 | namespace Pop\Http\Client\Middleware; |
| 16 | |
| 17 | use Psr\Http\Message\RequestInterface; |
| 18 | use Psr\Http\Message\ResponseInterface; |
| 19 | |
| 20 | /** |
| 21 | * Client middleware request handler interface - what a MiddlewareInterface's |
| 22 | * $handler argument is; calling $handler->handle($request) continues the chain |
| 23 | * |
| 24 | * @category Pop |
| 25 | * @package Pop\Http |
| 26 | * @author Nick Sagona, III <nick@popphp.org> |
| 27 | * @copyright Copyright (c) 2009-2026 Nick Sagona, III |
| 28 | * @license https://www.popphp.org/license New BSD License |
| 29 | * @version 6.0.0 |
| 30 | */ |
| 31 | interface RequestHandlerInterface |
| 32 | { |
| 33 | |
| 34 | /** |
| 35 | * Handle the request and return a response |
| 36 | * |
| 37 | * @param RequestInterface $request |
| 38 | * @return ResponseInterface |
| 39 | */ |
| 40 | public function handle(RequestInterface $request): ResponseInterface; |
| 41 | |
| 42 | } |