HttpRequestHandlerInterface
interface HttpRequestHandlerInterface implements RequestHandlerInterface (View source)
The interface for a request handler which handles and works with HTTP requests
Methods
Checks if the request handler can handle the current request.
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 the HTTP response corresponding to the currently handled request
Get the ComponentContext for this request handlers component chain
Details
void
handleRequest()
Handles a raw request
mixed
canHandleRequest()
Checks if the request handler can handle the current request.
int
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".
ServerRequestInterface
getHttpRequest()
deprecated
deprecated since 6.0 use getComponentContext()->getHttpRequest() instead
Returns the currently processed HTTP request
ResponseInterface
getHttpResponse()
deprecated
deprecated since 6.0 use getComponentContext()->getHttpResponse() instead
Returns the HTTP response corresponding to the currently handled request
ComponentContext
getComponentContext()
Get the ComponentContext for this request handlers component chain