Registry / networking / http-interop-http-middleware

http-interop-http-middleware

JSON →
library0.5.0phppackagistunverified

Common interface for HTTP server-side middleware.

composer require http-interop/http-middleware
INSTALL
IMPORT
SIG · HTTP-INTEROP-HTTP-
H
http-interop-http-middleware
networkingphpv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MiddlewareInterface
use Interop\Http\ServerMiddleware\MiddlewareInterface;

Implement a PSR-15 compatible middleware using the interop interface.

use Interop\Http\ServerMiddleware\MiddlewareInterface; use Psr\Http\Message\ServerRequestInterface; use Interop\Http\ServerMiddleware\DelegateInterface; class MyMiddleware implements MiddlewareInterface { public function process(ServerRequestInterface $request, DelegateInterface $delegate) { // Process request return $delegate->process($request); } }
Debug
Known issues
breakingThis package is deprecated in favor of PSR-15 interfaces.
fix
Use psr/http-server-middleware instead.
affects: >=0.5.0
Upgrade
Version history
0.5.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
http-interop-http-middleware — pip install http-interop-http-middleware · libregistry