Salemove.HttpClient.Middleware.Proxy (salemove_http_client v2.2.1)
Adds proxy server options to a request if either of the following conditions are met:
- Environment variable
http_proxy
(orHTTP_PROXY
) is set and requested protocol ishttp://
- Environment variable
https_proxy
(orHTTPS_PROXY
) is set and requested protocol ishttps://
Proxy options are not injected if either of the following conditions are met:
- Requested host is included into
no_proxy
(orNO_PROXY
) environment variable - Http client is configured with option
proxy: false
Link to this section Summary
Functions
Callback implementation for Tesla.Middleware.call/3
.
Link to this section Functions
Link to this function
call(env, next, opts)
Callback implementation for Tesla.Middleware.call/3
.