Description
Description
When using the NoPrivateNetworkHttpClient
and there is a proxy set (eg: auto-discovered with the HTTPS_PROXY
env var), if the proxy is local the request is blocked by the NoPrivateNetworkHttpClient
.
I believe it would make sense to automatically authorize the proxy in this case, or skip the NoPrivateNetworkHttpClient
entirely.
It's hard to figure out if we should skip adding NoPrivateNetworkHttpClient
because the HttpClientInterface
can't tell us if it's using a proxy or not. Even getting the inner client options and reproducing the logic it uses to figure out if and which proxy to use is not easy.
Ideally, the NoPrivateNetworkHttpClient
could ask the inner client if it's using a proxy or not and not do anything when a proxy is used.
Example
No response