HTTP Proxy Middleware Response Body Extractor
JSON →The `http-proxy-middleware-body` package, currently at version `1.0.0` (last published three years ago), provides a utility function to capture and process the response body from proxied requests when using `http-proxy-middleware`. This is particularly useful for scenarios where introspection or modification of the proxy's response payload is required, such as error handling, token expiration checks, or data transformation before sending the response back to the client. While `http-proxy-middleware` itself focuses on proxying, this package extends its capabilities by exposing the `onProxyRes` event's full response data stream, enabling developers to parse JSON or other raw body formats by buffering the entire stream. Its release cadence is inactive, as `1.0.0` is the current and seemingly only major version. It differentiates itself by offering a simple way to access the full response body, a feature that the core `http-proxy-middleware` API did not directly provide in early versions, though newer versions of `http-proxy-middleware` now offer `responseInterceptor` for similar functionality.
Traffic · last 30 days ↑250% vs prev 7d
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇫🇷 France · 🇸🇬 Singapore