UNPKG

node-web-mvc

Version:
12 lines (11 loc) 493 B
/** * @module ServletNodeContext * @description node原生框架接入上下文实现 */ import http from 'http'; import HandlerConnector, { ServletHandler } from './HandlerConnector'; import { NodeServerOptions } from '../SpringBootApplication'; export default class NodeNativeConnector implements HandlerConnector { private createServer; connect(handler: ServletHandler, config: NodeServerOptions): Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>>; }