@speedup/async-http-server
Version:
Asynchronous wrapper for HTTP server
21 lines (20 loc) • 483 B
TypeScript
/**
* 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;