mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-04 15:56:24 +02:00
47 lines
1.3 KiB
TypeScript
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;
|
|
}
|