source: trip-planner-front/node_modules/http-proxy-agent/dist/agent.d.ts@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 941 bytes
Line 
1/// <reference types="node" />
2import net from 'net';
3import { Agent, ClientRequest, RequestOptions } from 'agent-base';
4import { HttpProxyAgentOptions } from '.';
5interface HttpProxyAgentClientRequest extends ClientRequest {
6 path: string;
7 output?: string[];
8 outputData?: {
9 data: string;
10 }[];
11 _header?: string | null;
12 _implicitHeader(): void;
13}
14/**
15 * The `HttpProxyAgent` implements an HTTP Agent subclass that connects
16 * to the specified "HTTP proxy server" in order to proxy HTTP requests.
17 *
18 * @api public
19 */
20export default class HttpProxyAgent extends Agent {
21 private secureProxy;
22 private proxy;
23 constructor(_opts: string | HttpProxyAgentOptions);
24 /**
25 * Called when the node-core HTTP client library is creating a
26 * new HTTP request.
27 *
28 * @api protected
29 */
30 callback(req: HttpProxyAgentClientRequest, opts: RequestOptions): Promise<net.Socket>;
31}
32export {};
Note: See TracBrowser for help on using the repository browser.