Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace "/home/runner/work/forge/forge/node_modules/webpack-dev-server/node_modules/http-proxy-middleware/dist/index"

Index

Type aliases

Functions

  • fixRequestBody(proxyReq: ClientRequest, req: IncomingMessage): void
  • Fix proxied body if bodyParser is involved.

    Parameters

    • proxyReq: ClientRequest
    • req: IncomingMessage

    Returns void

  • responseInterceptor(interceptor: Interceptor): (proxyRes: http.IncomingMessage, req: http.IncomingMessage, res: http.ServerResponse) => Promise<void>
  • Intercept responses from upstream. Automatically decompress (deflate, gzip, brotli). Give developer the opportunity to modify intercepted Buffer and http.ServerResponse

    NOTE: must set options.selfHandleResponse=true (prevent automatic call of res.end())

    Parameters

    Returns (proxyRes: http.IncomingMessage, req: http.IncomingMessage, res: http.ServerResponse) => Promise<void>

      • (proxyRes: http.IncomingMessage, req: http.IncomingMessage, res: http.ServerResponse): Promise<void>
      • Intercept responses from upstream. Automatically decompress (deflate, gzip, brotli). Give developer the opportunity to modify intercepted Buffer and http.ServerResponse

        NOTE: must set options.selfHandleResponse=true (prevent automatic call of res.end())

        Parameters

        • proxyRes: http.IncomingMessage
        • req: http.IncomingMessage
        • res: http.ServerResponse

        Returns Promise<void>