Files
2023-11-24 22:35:41 +01:00

47 lines
1.3 KiB
TypeScript

/**
* @adonisjs/http-server
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { ApplicationContract } from '@ioc:Adonis/Core/Application';
export default class HttpServerProvider {
protected application: ApplicationContract;
constructor(application: ApplicationContract);
/**
* Validate server config to ensure we start with sane defaults
*/
private validateServerConfig;
/**
* Register request and response bindings to the container
*/
protected registerRequestResponse(): void;
/**
* Registering middleware store to the container
*/
protected registerMiddlewareStore(): void;
/**
* Registering the HTTP context
*/
protected registerHTTPContext(): void;
/**
* Register the HTTP server
*/
protected registerHttpServer(): void;
/**
* Register the router. The router points to the instance of router used
* by the middleware
*/
protected registerRouter(): void;
/**
* Registers the cookie client with the container
*/
protected registerCookieClient(): void;
/**
* Registering all bindings
*/
register(): void;
}