HTTPApplication
class HTTPApplication implements Application
Invokes the HTTP application within an ErrorControlChain
Traits
Adds middleware support to an object.
Methods
$this
execute(HTTPRequest $request, callable $callback, bool $flush = false)
Safely boot the application and execute the given main action
Details
in HTTPMiddlewareAware at line 22
HTTPMiddleware[]
getMiddlewares()
in HTTPMiddlewareAware at line 31
$this
setMiddlewares(HTTPMiddleware[] $middlewares)
in HTTPMiddlewareAware at line 42
$this
addMiddleware(HTTPMiddleware $middleware)
at line 40
__construct(Kernel $kernel)
Initialize the application with a kernel instance
at line 52
$this
setFlushDiscoverer(FlushDiscoverer $discoverer)
Override the default flush discovery
at line 65
FlushDiscoverer
getFlushDiscoverer(HTTPRequest $request)
Returns the current flush discoverer
at line 100
Kernel
getKernel()
Get the kernel for this application
at line 111
HTTPResponse
handle(HTTPRequest $request)
Handle the given HTTP request
at line 130
HTTPResponse
execute(HTTPRequest $request, callable $callback, bool $flush = false)
Safely boot the application and execute the given main action