Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set proxy for some fetch request not all #6654

Closed
XGHeaven opened this issue Jul 6, 2020 · 3 comments
Closed

How to set proxy for some fetch request not all #6654

XGHeaven opened this issue Jul 6, 2020 · 3 comments

Comments

@XGHeaven
Copy link

XGHeaven commented Jul 6, 2020

I want to set proxy for some fetch request and others not. How to do that.

I know set http_proxy/https_proxy env which only proxy all fetch request.

@jacobgc
Copy link
Contributor

jacobgc commented Jul 6, 2020

As far as I'm aware, the fetch api doesn't support setting a proxy on an individual request basis.

@bartlomieju
Copy link
Member

@jacobgc is correct. Please describe your use case and continue in #3444.

@chibat
Copy link
Contributor

chibat commented Jul 18, 2020

I tried creating the following.
https://github.com/chibat/rest_client_with_proxy

but we will be happy if it is implemented in runtime api.

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

No branches or pull requests

4 participants