Skip to content

Auto detect proxy from environments#649

Merged
algesten merged 2 commits into
algesten:mainfrom
dojiong:main
Sep 30, 2023
Merged

Auto detect proxy from environments#649
algesten merged 2 commits into
algesten:mainfrom
dojiong:main

Conversation

@dojiong

@dojiong dojiong commented Aug 11, 2023

Copy link
Copy Markdown

solve #322

Just like reqwest, auto detect proxy from ALL_PROXY/HTTPS_PROXY/HTTP_PROXY reqwest::proxy.rs

Add AgentBuilder::no_proxy if someone don't want to use system's proxy

Comment thread src/proxy.rs
);
None
}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this. Nice!

Comment thread src/agent.rs
Boshen pushed a commit to oxc-project/oxc that referenced this pull request Aug 15, 2023
detect `HTTP_PROXY/HTTPS_PROXY/ALL_PROXY` environments automatically,
since visiting https://raw.githubusercontent.com sometimes need proxy,
upstream PR
[algesten/ureq#649](algesten/ureq#649)
@algesten algesten merged commit a3bf7f0 into algesten:main Sep 30, 2023
@algesten

Copy link
Copy Markdown
Owner

Thanks for the work in this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants