UNPKG

@n1k1t/mock-server

Version:

The ultimate toolkit to intercept, transform, and simulate HTTP/WS traffic with type-safe expectations

6 lines 400 B
import { IncomingMessage } from 'http'; import { IRequestContextIncoming } from './types'; import { TRequestPayloadType } from '../../types'; export declare const definePayloadType: (headers: IncomingMessage["headers"]) => TRequestPayloadType | null; export declare const extractHttpIncommingContext: (request: IncomingMessage) => Promise<IRequestContextIncoming>; //# sourceMappingURL=utils.d.ts.map