UNPKG

@piggly/fastify-chassis

Version:

An ESM/CommonJS toolkit to help you to do common operations in your back-end applications with Fastify and NodeJS.

26 lines (25 loc) 961 B
import { Server } from 'https'; import { FastifyHttpsOptions } from 'fastify'; import type { ApiDefaultEnvironment, ApiServerOptions } from '../../types/index.js'; import { AbstractServer } from '../../www/fastify/AbstractServer.js'; /** * @file The API server. * @copyright Piggly Lab 2023 */ export declare class HttpSecureServer<AppEnvironment extends ApiDefaultEnvironment> extends AbstractServer<Server, AppEnvironment> { /** * Create a new API server. * * @param options The options. * @public * @constructor * @memberof ApiServer * @since 1.0.0 * @since 7.2.1 Disable fastify logs. * @author Caique Araujo <caique@piggly.com.br> */ constructor(options: ApiServerOptions<Server, AppEnvironment>, ssl: { cert: Array<string | Buffer> | undefined | string | Buffer; key: Array<string | Buffer> | undefined | string | Buffer; }, fastifyOptions?: FastifyHttpsOptions<Server>); }