fix-request-body.d.ts 285 B

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