callcatcher
Version:
Your native NodeJS monitoring API
15 lines (14 loc) • 429 B
TypeScript
/// <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>;
}