Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
872 bytes
|
Line | |
---|
1 | /// <reference types="node" />
|
---|
2 | import net from 'net';
|
---|
3 | import tls from 'tls';
|
---|
4 | import { Url } from 'url';
|
---|
5 | import { AgentOptions } from 'agent-base';
|
---|
6 | import _HttpProxyAgent from './agent';
|
---|
7 | declare function createHttpProxyAgent(opts: string | createHttpProxyAgent.HttpProxyAgentOptions): _HttpProxyAgent;
|
---|
8 | declare namespace createHttpProxyAgent {
|
---|
9 | interface BaseHttpProxyAgentOptions {
|
---|
10 | secureProxy?: boolean;
|
---|
11 | host?: string | null;
|
---|
12 | path?: string | null;
|
---|
13 | port?: string | number | null;
|
---|
14 | }
|
---|
15 | export interface HttpProxyAgentOptions extends AgentOptions, BaseHttpProxyAgentOptions, Partial<Omit<Url & net.NetConnectOpts & tls.ConnectionOptions, keyof BaseHttpProxyAgentOptions>> {
|
---|
16 | }
|
---|
17 | export type HttpProxyAgent = _HttpProxyAgent;
|
---|
18 | export const HttpProxyAgent: typeof _HttpProxyAgent;
|
---|
19 | export {};
|
---|
20 | }
|
---|
21 | export = createHttpProxyAgent;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.