|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
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.