express-http-proxy-2
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114560
60
2815
587
9