Basicis - Core

Logo

As the name says, it is made to be basic and direct.

View the Project on GitHub basicis/core

Basicis\Http\Server\RequestHandler

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.

Implements:

Basicis\Http\Server\RequestHandlerInterface

Methods

Name Description
__invoke Function handle
Handles a request and produces a response.  
handle Function handle
Handles a request and produces a response.  

RequestHandler::__invoke

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

Return Values

\ResponseInterface


RequestHandler::handle

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

Return Values

\ResponseInterface