MiddlewareInterface
in
Participant in processing a server request and response.
An HTTP middleware component participates in processing an HTTP message: by acting on the request, generating the response, or forwarding the request to a subsequent middleware and possibly acting on its response.
Table of Contents
Methods
- process() : ResponseInterface
- Process an incoming server request.
Methods
process()
Process an incoming server request.
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Processes an incoming server request in order to produce a response. If unable to produce the response itself, it may delegate to the provided request handler to do so.
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface