@ghini/kit
Version:
js practical tools to assist efficient development
15 lines (14 loc) • 574 B
TypeScript
export type ServerExtension = {
ip: string;
open: number;
routes: any[];
addr: Function;
static: Function;
_404: Function;
router_begin: Function;
cnn: number;
};
export function h2s(...argv: any[]): Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse> & ServerExtension>;
export function hs(...argv: any[]): Promise<import("http").Server & ServerExtension>;
export function hss(...argv: any[]): Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse> & ServerExtension>;
import http from "http";