Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 9, 2024 via pnpm

http-proxy 1.18.1

HTTP proxying for the masses
Package summary
Share
0
issues
1
license
4
MIT
Package created
20 Mar 2011
Version published
17 May 2020
Maintainers
4
Total deps
4
Direct deps
3
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
eventemitter3@4.0.7
follow-redirects@1.15.6
http-proxy@1.18.1
requires-port@1.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of http-proxy 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
eventemitter34.0.79.43 kBMIT
prod
follow-redirects1.15.628.68 kBMIT
prod
requires-port1.0.02.99 kBMIT
prod

Visualizations

Frequently Asked Questions

What does http-proxy do?

The "http-proxy" npm package by HTTP Party, is an HTTP programmable proxying library designed to handle HTTP and WebSockets requests. Being suitable for implementing components such as reverse proxies and load balancers, it can be used effectively for HTTP proxying needs.

How do you use http-proxy?

Here's a basic example of how to use the "http-proxy" package:

var http = require('http');
var httpProxy = require('http-proxy');

// Create a proxy server with a specified target.
var proxy = httpProxy.createProxyServer({target:'http://localhost:9000'}).listen(8000);

// Create a targets server which will receive the proxied requests.
http.createServer(function (req, res) {
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  res.write('Request successfully proxied!' + '\n' + JSON.stringify(req.headers, true, 2));
  res.end();
}).listen(9000);

In this example, we first import the http and http-proxy modules. We then create a proxy server with a specified target URL. Any requests made to this proxy server will be forwarded to the target server located at http://localhost:9000. This server will respond with a simple message.

Where are the http-proxy docs?

The documentation for the "http-proxy" npm package, along with additional use-cases, options, and in-depth explanations of its features, can be found directly on its GitHub repository.