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

Set the proxy for each requests #656

Closed
GitPotTime opened this issue Jul 6, 2019 · 2 comments
Closed

Set the proxy for each requests #656

GitPotTime opened this issue Jul 6, 2019 · 2 comments
Labels
🤔 question Not a bug, not a request, not feature.

Comments

@GitPotTime
Copy link

Feature Request

Description

I work a lot with proxies and multiple threads. Currently, the only to use proxies is to set the proxy using FuelManager.instance.proxy but this is not for multiple proxies and multiple threads.

Proposed Solution

The best way is to set the proxy for each requests.

Alternatives I've considered

Like this: "https://google.com".sendGet().setProxy("AProxy")`

@SleeplessByte
Copy link
Collaborator

new FuelManager()
  .also { |it| it.proxy = ... }
  .get("https://google.com")
  .responseXXX

Something like this?

@GitPotTime
Copy link
Author

Yes exactly

@SleeplessByte SleeplessByte added the 🤔 question Not a bug, not a request, not feature. label Jul 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 question Not a bug, not a request, not feature.
Projects
None yet
Development

No branches or pull requests

2 participants