You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see requests through proxy can be made by setting environment variables HTTP_PROXY & HTTPS_PROXY. This seems to work fine, but is there a way to add CONNECT headers? I can already see user-agent header is added, any way to add custom headers? curl provides an option --proxy-header for this.
No, unfortunately CONNECT requests / different proxies per request are currently not supported. #1045 is the issue that currently tracks that, though we will probably create a separate overarching issue about custom transports (#1045 (comment)) that would sum up all of the use cases for them.
Makes sense. I've created a small PR specifically for adding proxy headers, let me know if it can be merged standalone without the other features you mentioned.
I see requests through proxy can be made by setting environment variables
HTTP_PROXY
&HTTPS_PROXY
. This seems to work fine, but is there a way to add CONNECT headers? I can already see user-agent header is added, any way to add custom headers? curl provides an option--proxy-header
for this.example request would be
The text was updated successfully, but these errors were encountered: