‪TYPO3CMS  9.5
TYPO3\CMS\Core\Http\RequestHandlerInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Http\RequestHandlerInterface:
TYPO3\CMS\Backend\Http\AjaxRequestHandler TYPO3\CMS\Backend\Http\RequestHandler TYPO3\CMS\Core\Http\MiddlewareDispatcher TYPO3\CMS\Frontend\Http\EidRequestHandler TYPO3\CMS\Frontend\Http\RequestHandler TYPO3\CMS\Install\Http\InstallerRequestHandler TYPO3\CMS\Install\Http\RequestHandler

Public Member Functions

ResponseInterface handleRequest (ServerRequestInterface $request)
 
bool canHandleRequest (ServerRequestInterface $request)
 
int getPriority ()
 

Detailed Description

The interface for a request handler see RequestHandler in EXT:backend/Classes/Http/ and EXT:frontend/Classes/Http

although TYPO3 Core still uses this in TYPO3 v9, this will be removed with PSR-15 RequestHandlerInterface

Definition at line 27 of file RequestHandlerInterface.php.

Member Function Documentation

◆ canHandleRequest()

bool TYPO3\CMS\Core\Http\RequestHandlerInterface::canHandleRequest ( ServerRequestInterface  $request)

Checks if the request handler can handle the given request.

Parameters
ServerRequestInterface$request
Returns
‪bool TRUE if it can handle the request, otherwise FALSE

Implemented in TYPO3\CMS\Frontend\Http\RequestHandler, TYPO3\CMS\Install\Http\RequestHandler, TYPO3\CMS\Install\Http\InstallerRequestHandler, TYPO3\CMS\Backend\Http\RequestHandler, TYPO3\CMS\Backend\Http\AjaxRequestHandler, and TYPO3\CMS\Frontend\Http\EidRequestHandler.

◆ getPriority()

int TYPO3\CMS\Core\Http\RequestHandlerInterface::getPriority ( )

Returns the priority - how eager the handler is to actually handle the request. An integer > 0 means "I want to handle this request" where "100" is default. "0" means "I am a fallback solution".

Returns
‪int The priority of the request handler

Implemented in TYPO3\CMS\Frontend\Http\RequestHandler, TYPO3\CMS\Install\Http\RequestHandler, TYPO3\CMS\Install\Http\InstallerRequestHandler, TYPO3\CMS\Backend\Http\RequestHandler, TYPO3\CMS\Backend\Http\AjaxRequestHandler, and TYPO3\CMS\Frontend\Http\EidRequestHandler.

◆ handleRequest()

ResponseInterface TYPO3\CMS\Core\Http\RequestHandlerInterface::handleRequest ( ServerRequestInterface  $request)