http-proxy-node16
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "http-proxy-node16", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/http-party/node-http-proxy.git" | ||
"url": "https://github.com/Jimbly/http-proxy-node16.git" | ||
}, | ||
"description": "Fork of `http-proxy` that works on Node v16.x", | ||
"author": "Jimb Esser (https://github.com/Jimbly)", | ||
"authors": [ | ||
"Charlie Robbins <charlie.robbins@gmail.com>", | ||
"description": "Fork of http-proxy that works on Node v16.x", | ||
"author": "Charlie Robbins <charlie.robbins@gmail.com>", | ||
"contributors": [ | ||
"Jimb Esser (https://github.com/Jimbly/)", | ||
"jcrugzz <jcrugzz@gmail.com>" | ||
@@ -13,0 +13,0 @@ ], |
@@ -5,9 +5,5 @@ <p align="center"> | ||
# http-proxy-node16 | ||
# node-http-proxy [![Build Status](https://travis-ci.org/http-party/node-http-proxy.svg?branch=master)](https://travis-ci.org/http-party/node-http-proxy) [![codecov](https://codecov.io/gh/http-party/node-http-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/http-party/node-http-proxy) | ||
Fork of [http-proxy](https://github.com/http-party/node-http-proxy) that works on Node v16.x | ||
# http-proxy | ||
`http-proxy` is an HTTP programmable proxying library that supports | ||
`node-http-proxy` is an HTTP programmable proxying library that supports | ||
websockets. It is suitable for implementing components such as reverse | ||
@@ -40,3 +36,3 @@ proxies and load balancers. | ||
`npm install http-proxy-node16 --save` | ||
`npm install http-proxy --save` | ||
@@ -57,3 +53,3 @@ **[Back to top](#table-of-contents)** | ||
```javascript | ||
var httpProxy = require('http-proxy-node16'); | ||
var httpProxy = require('http-proxy'); | ||
@@ -107,3 +103,3 @@ var proxy = httpProxy.createProxyServer(options); // See (†) | ||
var http = require('http'), | ||
httpProxy = require('http-proxy-node16'); | ||
httpProxy = require('http-proxy'); | ||
// | ||
@@ -133,3 +129,3 @@ // Create your proxy server and set the target in the options. | ||
var http = require('http'), | ||
httpProxy = require('http-proxy-node16'); | ||
httpProxy = require('http-proxy'); | ||
@@ -164,3 +160,3 @@ // | ||
var http = require('http'), | ||
httpProxy = require('http-proxy-node16'); | ||
httpProxy = require('http-proxy'); | ||
@@ -209,3 +205,3 @@ // | ||
var http = require('http'), | ||
httpProxy = require('http-proxy-node16'); | ||
httpProxy = require('http-proxy'); | ||
@@ -397,3 +393,3 @@ // | ||
const streamify = require('stream-array'); | ||
const HttpProxy = require('http-proxy-node16'); | ||
const HttpProxy = require('http-proxy'); | ||
const proxy = new HttpProxy(); | ||
@@ -434,3 +430,3 @@ | ||
```js | ||
var httpProxy = require('http-proxy-node16'); | ||
var httpProxy = require('http-proxy'); | ||
// Error example | ||
@@ -437,0 +433,0 @@ // |
51866
569