rittenhop-dev/versions/5.94.2/node_modules/hpagent/index.d.ts
2024-09-23 19:40:12 -04:00

36 lines
795 B
TypeScript

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,
}