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.
7 lines (6 loc) • 301 B
TypeScript
/// <reference types="node" />
import { RequestListener } from 'http';
declare type Output = (options: object) => Promise<RequestListener>;
declare type FastifyBuilder = (options: object) => any;
declare const fastifyHandler: (fastifyBuilder: FastifyBuilder) => Output;
export default fastifyHandler;