9 lines
317 B
TypeScript
9 lines
317 B
TypeScript
|
|
import type * as http from 'http';
|
||
|
|
export type BodyParserLikeRequest = http.IncomingMessage & {
|
||
|
|
body?: any;
|
||
|
|
};
|
||
|
|
/**
|
||
|
|
* Fix proxied body if bodyParser is involved.
|
||
|
|
*/
|
||
|
|
export declare function fixRequestBody<TReq extends BodyParserLikeRequest = BodyParserLikeRequest>(proxyReq: http.ClientRequest, req: TReq): void;
|