env-http-proxy-agent.d.ts 732 B

12345678910111213141516171819202122
  1. import Agent from './agent'
  2. import ProxyAgent from './proxy-agent'
  3. import Dispatcher from './dispatcher'
  4. export default EnvHttpProxyAgent
  5. declare class EnvHttpProxyAgent extends Dispatcher {
  6. constructor (opts?: EnvHttpProxyAgent.Options)
  7. dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean
  8. }
  9. declare namespace EnvHttpProxyAgent {
  10. export interface Options extends Omit<ProxyAgent.Options, 'uri'> {
  11. /** Overrides the value of the HTTP_PROXY environment variable */
  12. httpProxy?: string;
  13. /** Overrides the value of the HTTPS_PROXY environment variable */
  14. httpsProxy?: string;
  15. /** Overrides the value of the NO_PROXY environment variable */
  16. noProxy?: string;
  17. }
  18. }