Files
react-native-devtools-frontend/node_modules/http-proxy-agent
Simon Zünd 73104de8cd Revert "Update puppeteer-core to 22.10.0"
This reverts commit 8c51286814.

Reason for revert: Causes e2e failures on CI

Original change's description:
> Update puppeteer-core to 22.10.0
>
> Bug: none
> Change-Id: Iac037f0e23af8660ed6014b91e7ebfdf7d45aec7
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5596376
> Reviewed-by: Simon Zünd <szuend@chromium.org>
> Commit-Queue: Simon Zünd <szuend@chromium.org>

Bug: none
Change-Id: I101d94fc6b652481162d85057c1c047a217601a6
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5600358
Auto-Submit: Simon Zünd <szuend@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
2024-06-05 06:20:14 +00:00
..
2024-02-27 09:00:14 +00:00
2024-02-27 09:00:14 +00:00
2024-02-27 09:00:14 +00:00

http-proxy-agent

An HTTP(s) proxy http.Agent implementation for HTTP

This module provides an http.Agent implementation that connects to a specified HTTP or HTTPS proxy server, and can be used with the built-in http module.

Note: For HTTP proxy usage with the https module, check out https-proxy-agent.

Example

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);
});

API

new HttpProxyAgent(proxy: string | URL, options?: HttpProxyAgentOptions)

The HttpProxyAgent class implements an http.Agent subclass that connects to the specified "HTTP(s) proxy server" in order to proxy HTTP requests.

The proxy argument is the URL for the proxy server.

The options argument accepts the usual http.Agent constructor options, and some additional properties:

  • headers - Object containing additional headers to send to the proxy server in each request. This may also be a function that returns a headers object.

    NOTE: If your proxy does not strip these headers from the request, they will also be sent to the destination server.