interface HttpRequestHandlerInterface implements RequestHandlerInterface (View source)

The interface for a request handler which handles and works with HTTP requests

Methods

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()

Returns the currently processed HTTP request

Details

void handleRequest()

Handles a raw request

Return Value

void

mixed canHandleRequest()

Checks if the request handler can handle the current request.

Return Value

mixed

true or an integer > 0 if it can handle the request, otherwise false or an integer < 0

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".

Return Value

int

The priority of the request handler

ServerRequestInterface getHttpRequest()

Returns the currently processed HTTP request

Return Value

ServerRequestInterface