CsrfProtectionRequestHandler
in package
implements
RequestHandlerInterface
Refuses to process an invalid request
Interfaces, Classes, Traits and Enums
- RequestHandlerInterface
Table of Contents
- BAD_REQUEST = "Bad Request"
- CREATED = "Created"
- FORBIDDEN = "Forbidden"
- METHOD_NOT_ALLOWED = "Method Not Allowed"
- OK = "OK"
- __construct() : mixed
- handle() : ResponseInterface
- Determines the response based on the validity of the request.
Constants
BAD_REQUEST
public
mixed
BAD_REQUEST
= "Bad Request"
CREATED
public
mixed
CREATED
= "Created"
FORBIDDEN
public
mixed
FORBIDDEN
= "Forbidden"
METHOD_NOT_ALLOWED
public
mixed
METHOD_NOT_ALLOWED
= "Method Not Allowed"
OK
public
mixed
OK
= "OK"
Methods
__construct()
public
__construct(CsrfToken $token, AbstractTokenStorage $storage, ResponseFactoryInterface $responseFactory[, string $requestId = REQUEST_ID_KEY ]) : mixed
Parameters
- $token : CsrfToken
- $storage : AbstractTokenStorage
- $responseFactory : ResponseFactoryInterface
- $requestId : string = REQUEST_ID_KEY
Return values
mixed —handle()
Determines the response based on the validity of the request.
public
handle(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface