UNPKG

@gabliam/web-core

Version:
19 lines (18 loc) 890 B
/// <reference types="node" /> import { gabliamValue } from '@gabliam/core'; import { Server } from 'http'; import { RequestListenerCreator } from './interface'; import { WebPluginConfig } from './plugin-config'; import { WebConfiguration } from './web-configuration'; export interface ServerStarter { start(restConfig: WebPluginConfig, webConfiguration: WebConfiguration, listenerCreator: RequestListenerCreator): gabliamValue<Server>; } /** * This class is used for start the http server * If you want use a Https, or use an other class (ex: unit-http), override this class * * Graphql override this class */ export declare class HttpServerStarter implements ServerStarter { start(restConfig: WebPluginConfig, webConfiguration: WebConfiguration, listenerCreator: RequestListenerCreator): Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>; }