Koa Better Http Proxy

screenshot of Koa Better Http Proxy
express

Proxy middleware for Koa. Based on villadora/express-http-proxy

Overview:

The koa-better-http-proxy is a Koa middleware that allows users to proxy requests to another host and pass responses back. It is inspired by express-http-proxy and offers various features to customize and control the proxying process.

Features:

  • Custom http.Agent: Use a custom http.Agent for proxy requests.
  • Port Configuration: Define the port to use for the proxied host.
  • Additional Headers: Include additional headers to send to the proxied host.
  • Path Routing: Proxy specific paths using router middleware.
  • Response Manipulation: Modify the proxy response before sending it to the client.
  • Request Options Decoration: Mutate the request options before sending the proxyRequest.
  • Body Content Manipulation: Modify the body content before sending the proxyRequest.
  • HTTPS Support: Force the proxy request to be made over HTTPS.

Summary:

The koa-better-http-proxy module for Koa middleware offers a wide range of features for proxying requests to other hosts and controlling the response handling. With options for custom agents, port configurations, header management, path routing, response and request manipulation, as well as support for HTTPS, this middleware provides a flexible and versatile solution for proxying requests within a Koa application.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.