@athenna/core
Version:
One foundation for multiple applications.
32 lines (31 loc) • 1.02 kB
TypeScript
/**
* @athenna/core
*
* (c) João Lenon <lenon@athenna.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import type { ServerImpl } from '@athenna/http';
import type { HttpOptions } from '#src/types/HttpOptions';
import type { AWSLambdaHandler } from '#src/types/AWSLambdaHandler';
export declare class Http {
/**
* Only initialize the server without booting it.
*/
static init(options?: HttpOptions): Promise<ServerImpl>;
static boot(options: HttpOptions & {
isAWSLambda: true;
}): Promise<AWSLambdaHandler>;
static boot(options?: HttpOptions): Promise<ServerImpl>;
/**
* Resolve the kernel by importing it and calling the methods to register
* controllers, all kind of middlewares, plugins and exception handler for
* requests.
*/
private static resolveKernel;
/**
* Resolve the AWS Lambda proxy.
*/
private static resolveAWSLambdaProxy;
}