版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

22 строки
872 B

  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;