As the name says, it is made to be basic and direct.
RequestHandler class Handles a server request and produces a response.
An HTTP request handler process an HTTP request in order to produce an HTTP response.
Basicis\Http\Server\RequestHandlerInterface
Name | Description |
---|---|
__invoke | Function handle |
Handles a request and produces a response. | |
handle | Function handle |
Handles a request and produces a response. |
Description
public __invoke (\ServerRequestInterface $request, \ResponseInterface $response, callable $next)
Function handle Handles a request and produces a response.
May call other collaborating code to generate the response.
Parameters
(\ServerRequestInterface) $request
(\ResponseInterface) $response
(callable) $next
Return Values
\ResponseInterface
Description
public handle (\ServerRequestInterface $request, \ResponseInterface $response, callable $next)
Function handle Handles a request and produces a response.
May call other collaborating code to generate the response.
Parameters
(\ServerRequestInterface) $request
(\ResponseInterface) $response
(callable) $next
Return Values
\ResponseInterface