UNPKG

@nodifier/http-mock

Version:

A node module to mock http/https requests made for unit testing etc.

9 lines (8 loc) 238 B
import { IncomingMessage } from "node:http"; /** * * @param str * @returns */ export declare const tryParseJson: (str: string) => any; export declare const setHeadersToJson: (headersObj: any, clientResponse: IncomingMessage) => void;