proxy-middleware
Advanced tools
Comparing version 0.12.0 to 0.13.0
@@ -10,2 +10,7 @@ var os = require('os'); | ||
var request = httpLib.request; | ||
//enable ability to quickly pass a url for shorthand setup | ||
if(typeof options === 'string'){ | ||
options = require('url').parse(options); | ||
} | ||
options = options || {}; | ||
@@ -12,0 +17,0 @@ options.hostname = options.hostname; |
{ | ||
"name": "proxy-middleware", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "http(s) proxy as connect middleware", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,2 +13,5 @@ [![Build Status](https://secure.travis-ci.org/andrewrk/node-proxy-middleware.png)](http://travis-ci.org/andrewrk/node-proxy-middleware) | ||
// now requests to '/api/x/y/z' are proxied to 'https://example.com/endpoint/x/y/z' | ||
//same as example above but also uses a short hand string only parameter | ||
app.use('/api-string-only', proxy('https://example.com/endpoint')); | ||
``` | ||
@@ -15,0 +18,0 @@ |
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
7941
118
41