-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.d.ts
35 lines (29 loc) · 795 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import * as http from 'http'
import * as https from 'https'
import { URL } from 'url'
declare class HttpProxyAgent extends http.Agent {
constructor(options: HttpProxyAgentOptions)
}
interface HttpProxyAgentOptions extends http.AgentOptions {
proxy: string | URL,
proxyRequestOptions?: ProxyAgentRequestOptions
}
declare class HttpsProxyAgent extends https.Agent {
constructor(options: HttpsProxyAgentOptions)
}
interface HttpsProxyAgentOptions extends https.AgentOptions {
proxy: string | URL,
proxyRequestOptions?: ProxyAgentRequestOptions
}
interface ProxyAgentRequestOptions {
ca?: string[],
headers?: Object,
rejectUnauthorized?: boolean
}
export {
HttpProxyAgent,
HttpProxyAgentOptions,
HttpsProxyAgent,
HttpsProxyAgentOptions,
ProxyAgentRequestOptions,
}