@girin/framework
Version:
Core modules for Girin: GraphQL server framework
21 lines • 864 B
TypeScript
/// <reference types="node" />
/// <reference types="cors" />
import { Module } from '@girin/environment';
import * as http from 'http';
import * as net from 'net';
import { Config as ApolloServerConfig, CorsOptions } from 'apollo-server-express';
export interface HttpServerConfigs {
apollo?: Pick<ApolloServerConfig, 'schemaDirectives' | 'introspection' | 'mocks' | 'mockEntireSchema' | 'engine' | 'extensions' | 'persistedQueries' | 'subscriptions' | 'uploads' | 'playground'>;
listen?: net.ListenOptions;
cors?: CorsOptions;
}
export declare class HttpServer extends Module {
configs: HttpServerConfigs;
readonly label: string;
protected httpServer: http.Server;
constructor(configs: HttpServerConfigs);
onInit(): void;
onBootstrap(): Promise<void>;
onDestroy(): Promise<void>;
}
//# sourceMappingURL=HttpServer.d.ts.map