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

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