logifire / nano-middleware
PSR-15 请求处理器的实现
0.2.2
2021-09-21 18:10 UTC
Requires
- php: ^7.4
- psr/http-message: ^1.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- nyholm/psr7: ^1.0.1
- phpunit/phpunit: ^9.5.9
- psr/http-factory: ^1.0.0
Provides
This package is auto-updated.
Last update: 2024-09-06 00:20:39 UTC
README
PSR-15 请求处理器的实现
参见 https://www.php-fig.org/psr/psr-15/
用法
$handler = new RequestHandler();
$handler->addMiddleware(new Middleware());
$handler->addMiddleware(new Middleware());
$response = $handler->handle($server_request);