Salemove.HttpClient.Middleware.Proxy (salemove_http_client v4.0.0)

Adds proxy server options to a request if either of the following conditions are met:

  • Environment variable http_proxy (or HTTP_PROXY) is set and requested protocol is http://
  • Environment variable https_proxy (or HTTPS_PROXY) is set and requested protocol is https://

Proxy options are not injected if either of the following conditions are met:

  • Requested host is included into no_proxy (or NO_PROXY) environment variable
  • Http client is configured with option proxy: false

Link to this section Summary

Link to this section Functions

Link to this function

call(env, next, opts)

Callback implementation for Tesla.Middleware.call/3.