UNPKG

callcatcher

Version:
15 lines (14 loc) 429 B
/// <reference types="node" /> import { IncomingMessage, ServerResponse } from 'http'; import { Hit } from '../interfaces/hit'; /** * Hit Factory */ export declare class HitFactory { /** * Build a new Hit from the server request and response * @param {IncomingMessage} req * @param {ServerResponse} res */ static new(req: IncomingMessage, res: ServerResponse): Promise<Hit>; }