UNPKG

@speedup/async-http-server

Version:
21 lines (20 loc) 483 B
/** * Configuration type */ /// <reference types="node" /> import { RequestListener } from 'http'; declare type AsyncHTTPServerConfig = { /** * Hostname/IP address your server binds to */ host?: string; /** * Either the port or the path to the pipe */ port?: Number | string; /** * The handler (RequestHandler or any HTTP handler e.g. express application) */ handler?: RequestListener; }; export default AsyncHTTPServerConfig;