RuntimeSequenceHttpRequestHandler
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
This request handler can handle requests in Testing Context.
Returns the priority - how eager the handler is to actually handle the request.
No description
Returns the currently processed HTTP request
Details
__construct(Bootstrap $bootstrap)
Constructor
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.
As this request handler can only be used as a preselected request handler, the priority for all other cases is 0.
void
handleRequest()
Handles a command line request
void
setHttpRequest(ServerRequestInterface $request)
No description
ServerRequestInterface
getHttpRequest()
Returns the currently processed HTTP request