HttpApplicationInterface
extends
RequestHandlerInterface
in
An interface defining the methods that the http server depend on.
Table of Contents
Methods
- bootstrap() : void
- Load all the application configuration and bootstrap logic.
- handle() : ResponseInterface
- Handles a request and produces a response.
- middleware() : MiddlewareQueue
- Define the HTTP middleware layers for an application.
Methods
bootstrap()
Load all the application configuration and bootstrap logic.
public
bootstrap() : void
Override this method to add additional bootstrap logic for your application.
handle()
Handles a request and produces a response.
public
handle(ServerRequestInterface $request) : ResponseInterface
May call other collaborating code to generate the response.
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacemiddleware()
Define the HTTP middleware layers for an application.
public
middleware(MiddlewareQueue $middlewareQueue) : MiddlewareQueue
Parameters
- $middlewareQueue : MiddlewareQueue
-
The middleware queue to set in your App Class