UNPKG

285 BTypeScriptView Raw
1import type * as http from 'http';
2export type BodyParserLikeRequest = http.IncomingMessage & {
3 body: any;
4};
5/**
6 * Fix proxied body if bodyParser is involved.
7 */
8export declare function fixRequestBody<TReq = http.IncomingMessage>(proxyReq: http.ClientRequest, req: TReq): void;