W3cubDocs

/CakePHP 4.4

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

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/interface-Cake.Core.HttpApplicationInterface.html