Interface HttpApplicationInterface
An interface defining the methods that the http server depend on.
Namespace: Cake\Core
Method Summary
-
bootstrap() public
Load all the application configuration and bootstrap logic.
-
handle() public
Handles a request and produces a response.
-
middleware() public
Define the HTTP middleware layers for an application.
Method Detail
bootstrap() ¶ public
bootstrap(): void
Load all the application configuration and bootstrap logic.
Override this method to add additional bootstrap logic for your application.
Returns
void
handle() ¶ public
handle(ServerRequestInterface $request): ResponseInterface
Handles a request and produces a response.
May call other collaborating code to generate the response.
Parameters
-
ServerRequestInterface
$request
Returns
ResponseInterface
middleware() ¶ public
middleware(Cake\Http\MiddlewareQueue $middlewareQueue): Cake\Http\MiddlewareQueue
Define the HTTP middleware layers for an application.
Parameters
-
Cake\Http\MiddlewareQueue
$middlewareQueue The middleware queue to set in your App Class
Returns
Cake\Http\MiddlewareQueue