Documentation

HttpRequestHandler
in package

FinalYes

Table of Contents

Constants

SUPPORTED_METHODS  : mixed = ['GET', 'HEAD', 'POST', 'READ', 'PUT', 'PATCH',...

Properties

$container  : ContainerInterface
$cspNonce  : CspNonce
$httpConf  : HttpConf
$router  : Router
$session  : SessionManager

Methods

__construct()  : mixed
generateResponse()  : ResponseInterface
Generates a response from the given ServerRequestInterface object.
generateResponseFromRoute()  : ResponseInterface|ControllerIssue
generateResponseFromRouteException()  : ResponseInterface
respondToOngoingRequest()  : void
Generates and send back an HTTP response from PHP globals.
sendResponse()  : void
Send the response back to the client without altering it.
addCspSources()  : ResponseInterface

Constants

SUPPORTED_METHODS

public mixed SUPPORTED_METHODS = ['GET', 'HEAD', 'POST', 'READ', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']

Properties

Methods

generateResponse()

Generates a response from the given ServerRequestInterface object.

public generateResponse(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

generateResponseFromRouteException()

public generateResponseFromRouteException(ServerRequestInterface $request, ControllerIssue $issue) : ResponseInterface
Parameters
$request : ServerRequestInterface
$issue : ControllerIssue
Return values
ResponseInterface

respondToOngoingRequest()

Generates and send back an HTTP response from PHP globals.

public respondToOngoingRequest() : void

sendResponse()

Send the response back to the client without altering it.

public sendResponse(ResponseInterface $response) : void
Parameters
$response : ResponseInterface

addCspSources()

private addCspSources(ResponseInterface $response) : ResponseInterface
Parameters
$response : ResponseInterface
Return values
ResponseInterface
On this page

Search results