class RuntimeSequenceHttpRequestHandler extends RuntimeSequenceInvokingRequestHandler implements HttpRequestHandlerInterface (View source)

Everything from {RuntimeSequenceInvokingRequestHandler} applies to this.

Additionally, it also provides some support for HTTP request testing scenarios. For that reason it features a setRequest() method which is used by the FunctionalTestCase for setting the current HTTP request. That way, the request handler acts pretty much like the Http\RequestHandler from a client code perspective.

Properties

protected $bootstrap from  RuntimeSequenceInvokingRequestHandler

Methods

mixed
canHandleRequest()

This request handler can handle requests in Testing Context.

int
getPriority()

Returns the priority - how eager the handler is to actually handle the request.

void
handleRequest()

Handles a command line request

void
setHttpRequest(ServerRequestInterface $request)

No description

ServerRequestInterface
getHttpRequest()

Returns the currently processed HTTP request

Details

__construct(Bootstrap $bootstrap)

Constructor

Parameters

Bootstrap $bootstrap

mixed canHandleRequest()

This request handler can handle requests in Testing Context.

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.

As this request handler can only be used as a preselected request handler, the priority for all other cases is 0.

Return Value

int

The priority of the request handler

void handleRequest()

Handles a command line request

Return Value

void

void setHttpRequest(ServerRequestInterface $request)

No description

Parameters

ServerRequestInterface $request

Return Value

void

ServerRequestInterface getHttpRequest()

Returns the currently processed HTTP request

Return Value

ServerRequestInterface