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 15, 2024 via pnpm

http-proxy-agent 0.2.5

An HTTP(s) proxy `http.Agent` implementation for HTTP
Package summary
Share
9
issues
2
critical severity
license
2
3
high severity
vulnerability
3
3
moderate severity
vulnerability
3
1
low severity
vulnerability
1
2
licenses
2
MIT
2
N/A
Package created
9 Jul 2013
Version published
9 Apr 2014
Maintainers
1
Total deps
4
Direct deps
3
License
MIT

Issues

9

2 critical severity issues

critical
Recommendation: Check the package code and files for license information
via: debug@0.8.1
Recommendation: Check the package code and files for license information
via: extend@1.2.1
Collapse
Expand

3 high severity issues

high
Recommendation: Upgrade to version 2.1.0 or later
via: http-proxy-agent@0.2.5
Recommendation: Upgrade to version 2.1.0 or later
via: http-proxy-agent@0.2.5
Recommendation: Upgrade to version 2.6.9 or later
via: debug@0.8.1
Collapse
Expand

3 moderate severity issues

moderate
Recommendation: Upgrade to version 2.1.0 or later
via: http-proxy-agent@0.2.5
Recommendation: Upgrade to version 2.0.2 or later
via: extend@1.2.1
Recommendation: Upgrade to version 2.1.0 or later
via: http-proxy-agent@0.2.5
Collapse
Expand

1 low severity issue

low
Recommendation: Upgrade to version 2.6.9 or later
via: debug@0.8.1
Collapse
Expand

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
2 Packages, Including:
agent-base@1.0.2
http-proxy-agent@0.2.5

N/A

N/A
2 Packages, Including:
debug@0.8.1
extend@1.2.1
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-agent 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
agent-base1.0.25.68 kBMIT
prod
debug0.8.13.99 kBUNKNOWN
prod
1
1
1
extend1.2.12.29 kBUNKNOWN
prod
1
1

Visualizations

Frequently Asked Questions

What does http-proxy-agent do?

The "http-proxy-agent" is an http.Agent implementation for HTTP that facilitates connection to a specified HTTP or HTTPS proxy server. Its primary function is to enable proxying for HTTP requests, thus serving as a swift, effective strategy for managing HTTP requests in a web application. You can use this module with the built-in http module.

How do you use http-proxy-agent?

To use "http-proxy-agent," you need first to import the required modules. In this scenario, you need to import the "http" module and the "HttpProxyAgent" object from the "http-proxy-agent" module. Next, you instantiate the "HttpProxyAgent" class with the URL of the proxy server. You then call the "http.get" method and pass the URL of the website you wish to connect to, sending the "agent" object as an option. After this, you receive a callback function that logs the response headers and pipes the response to stdout. Here is an example usage:

import * as http from 'http';
import { HttpProxyAgent } from 'http-proxy-agent';

const agent = new HttpProxyAgent('http://168.63.76.32:3128');

http.get('http://nodejs.org/api/', { agent }, (res) => {
  console.log('"response" event!', res.headers);
  res.pipe(process.stdout);
});

It is important to note that the "http-proxy-agent" also accepts usual "http.Agent" constructor options and some additional properties, like the "headers" object.

Where are the http-proxy-agent docs?

The documents for "http-proxy-agent" are not explicitly specified in the repository README. However, the GitHub page at "https://github.com/TooTallNate/proxy-agents" provides crucial information about the usage and capabilities of this module. If further documentation is needed, it may be best to reach out to the repository owners or contributors directly.