Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-http-proxy-2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-http-proxy-2 - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

index.d.ts

3

package.json
{
"name": "express-http-proxy-2",
"version": "1.0.0",
"version": "1.1.0",
"description": "http proxy middleware for express",

@@ -27,2 +27,3 @@ "engines": {

"devDependencies": {
"@types/express": "^4.17.14",
"body-parser": "^1.17.2",

@@ -29,0 +30,0 @@ "chai": "^4.1.2",

# express-http-proxy-2 [![NPM version](https://badge.fury.io/js/express-http-proxy-2.svg)](http://badge.fury.io/js/express-http-proxy-2)
Fork of [express-http-proxy]() including a fix for
- https://github.com/villadora/express-http-proxy/issues/509
Fork of [express-http-proxy](https://github.com/villadora/express-http-proxy) including:
- a fix for https://github.com/villadora/express-http-proxy/issues/509
- TypeScript type definitions
Express middleware to proxy request to another host and pass response back to original caller.
Express middleware to proxy request to another host and pass the response back to the original caller.

@@ -20,3 +21,3 @@ ## Install

### Example:
To proxy URLS starting with '/proxy' to the host 'www.google.com':
To proxy URLs starting with '/proxy' to the host 'www.google.com':

@@ -62,3 +63,3 @@ ```js

The first positional argument is for the proxy host; in many cases you will use a static string here, eg.
The first positional argument is for the proxy host; in many cases, you will use a static string here, eg.

@@ -82,3 +83,3 @@ ```js

If you use 'https://www.npmjs.com/package/body-parser' you should declare it AFTER the proxy configuration, otherwise original 'POST' body could be modified and not proxied correctly.
If you use 'https://www.npmjs.com/package/body-parser' you should declare it AFTER the proxy configuration, otherwise, the original 'POST' body could be modified and not proxied correctly.

@@ -149,3 +150,3 @@ ```

For example, if you only want to proxy get request:
For example, if you only want to proxy get a request:

@@ -174,3 +175,3 @@ ```js

for filter here (skipping the rest of the proxy, and calling `next()`).
`reject()` will also skip the rest of proxy and call `next()`.
`reject()` will also skip the rest of the proxy and call `next()`.

@@ -177,0 +178,0 @@ #### userResDecorator (was: intercept) (supports Promise)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc