d4801f580efa4690a6a4531b2d592e89d2a1c00a310dbd6456fed548d1442e42e28828d4759e4d00e66dba52fcfad3a95221675405144281453b27cbbe2774 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. }