Method | Description | |
---|---|---|
__invoke ( |
Dispatch middleware | |
process ( |
Process middleware as invoked from an http-interop middleware instance. | |
raiseThrowables ( ) : void | Enables the "raise throwables", causing this instance to raise throwables instead of catch them. | |
setResponsePrototype ( Psr\Http\Message\ResponseInterface $responsePrototype ) : void | Set a response prototype to use when invoking callable middleware following http-interop middleware. |
Method | Description | |
---|---|---|
dispatchCallableMiddleware ( callable $middleware, callable $next, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, mixed $err = null ) : Psr\Http\Message\ResponseInterface | Dispatch non-interop middleware. | |
dispatchInteropMiddleware ( Interop\Http\Middleware\ServerMiddlewareInterface $middleware, callable $next, Psr\Http\Message\RequestInterface $request ) : Psr\Http\Message\ResponseInterface | Dispatch http-interop middleware | |
handleThrowableFromInteropMiddleware ( Throwabl\Throwable | Exception $throwable, Psr\Http\Message\RequestInterface $request, callable $next ) : Psr\Http\Message\ResponseInterface | ||
isNotInteropMiddleware ( mixed $handler, Psr\Http\Message\RequestInterface $request ) : boolean | Test if the middleware composed by a route is not http-interop middleware. |
public __invoke ( |
||
$route | ||
$err | mixed | |
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$next | callable | |
return | Psr\Http\Message\ResponseInterface |
public raiseThrowables ( ) : void | ||
return | void |
public setResponsePrototype ( Psr\Http\Message\ResponseInterface $responsePrototype ) : void | ||
$responsePrototype | Psr\Http\Message\ResponseInterface | |
return | void |