On this page
Interface HttpApplicationInterface
An interface defining the methods that the http server depend on.
Direct Implementers
Method Summary
- 
    __invoke() publicInvoke the application.
- 
    bootstrap() publicLoad all the application configuration and bootstrap logic.
- 
    middleware() publicDefine the HTTP middleware layers for an application.
- 
    routes() publicDefine the routes for an application.
Method Detail
__invoke()source public
__invoke( Psr\Http\Message\ServerRequestInterface $request , Psr\Http\Message\ResponseInterface $response , callable $next )Invoke the application.
Parameters
- 
     Psr\Http\Message\ServerRequestInterface $request
- The request
- 
     Psr\Http\Message\ResponseInterface $response
- The response
- 
     callable $next
- The next middleware
Returns
Psr\Http\Message\ResponseInterfacebootstrap()source public
bootstrap( )Load all the application configuration and bootstrap logic.
Override this method to add additional bootstrap logic for your application.
middleware()source public
middleware( Cake\Http\MiddlewareQueue $middleware )Define the HTTP middleware layers for an application.
Parameters
- Cake\Http\MiddlewareQueue- $middleware
- The middleware queue to set in your App Class
Returns
Cake\Http\MiddlewareQueueroutes()source public
routes( Cake\Routing\RouteBuilder $routes )Define the routes for an application.
Use the provided RouteBuilder to define an application's routing.
Parameters
- Cake\Routing\RouteBuilder- $routes
- A route builder to add routes into.
© 2005–2017 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/3.4/class-Cake.Core.HttpApplicationInterface.html