PSR-15 Queue

AbstractMiddleware
in package
implements MiddlewareInterface

AbstractYes

Abstract class implementing \Psr\Http\Server\MiddlewareInterface.

Tags
author

Sebastian Meyer sebastian.meyer@opencultureconsulting.com

Table of Contents

Interfaces

MiddlewareInterface

Methods

__invoke()  : ResponseInterface
Allow the middleware to be invoked directly.
process()  : ResponseInterface
Process an incoming server request and produce a response.
processRequest()  : ServerRequestInterface
Process an incoming server request before delegating to next middleware.
processResponse()  : ResponseInterface
Process an incoming response before returning it to previous middleware.

Methods

__invoke()

Allow the middleware to be invoked directly.

public final __invoke(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface

The server request to process

$handler : RequestHandlerInterface

The request handler to delegate to

Return values
ResponseInterface

The response object

process()

Process an incoming server request and produce a response.

public final process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
APIYes
Parameters
$request : ServerRequestInterface

The server request to process

$handler : RequestHandlerInterface

The request handler to delegate to

Return values
ResponseInterface

The response object

processRequest()

Process an incoming server request before delegating to next middleware.

protected processRequest(ServerRequestInterface $request) : ServerRequestInterface
Parameters
$request : ServerRequestInterface

The incoming server request

Return values
ServerRequestInterface

The processed server request

processResponse()

Process an incoming response before returning it to previous middleware.

protected processResponse(ResponseInterface $response) : ResponseInterface
Parameters
$response : ResponseInterface

The incoming response

Return values
ResponseInterface

The processed response


        
On this page

Search results