Registry /
networking / http-interop-http-middleware
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);
}
}
Audit
Dependencies
No dependency data recorded yet.