Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 16, 2024 via pnpm

http-proxy-agent 7.0.0

An HTTP(s) proxy `http.Agent` implementation for HTTP
Package summary
Share
0
issues
1
license
4
MIT
Package created
9 Jul 2013
Version published
25 May 2023
Maintainers
1
Total deps
4
Direct deps
2
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:
agent-base@7.1.1
debug@4.3.4
http-proxy-agent@7.0.0
ms@2.1.2
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

2
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-base7.1.130.52 kBMIT
prod
debug4.3.412.94 kBMIT
prod

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.