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()

Load all the application configuration and bootstrap logic.

Override this method to add additional bootstrap logic for your application.

handle() public

handle(\Psr\Http\Message\ServerRequestInterface $request)

Handles a request and produces a response.

May call other collaborating code to generate the response.

Parameters

\Psr\Http\Message\ServerRequestInterface $request

middleware() public

middleware(\Cake\Http\MiddlewareQueue $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.0/interface-Cake.Core.HttpApplicationInterface.html