in-process-request
Version:
A node.js library that executes a http handler function in the current process without having to start a local http server.
8 lines (7 loc) • 333 B
TypeScript
/// <reference types="node" />
import { EventEmitter } from "events";
import { IncomingMessage, ServerResponse } from "http";
export declare class HapiListener extends EventEmitter {
listen(_port: any, maybeCallback?: any, maybeCallback2?: any): void;
get handler(): (req: IncomingMessage, res: ServerResponse) => boolean;
}