Last change
on this file since e29cc2e 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" />
|
---|
2 | import net from 'net';
|
---|
3 | import { Agent, ClientRequest, RequestOptions } from 'agent-base';
|
---|
4 | import { HttpProxyAgentOptions } from '.';
|
---|
5 | interface 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 | */
|
---|
20 | export 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 | }
|
---|
32 | export {};
|
---|
Note:
See
TracBrowser
for help on using the repository browser.