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

Dynamically change headers #58

Open
dfritsch86 opened this issue Apr 23, 2019 · 2 comments
Open

Dynamically change headers #58

dfritsch86 opened this issue Apr 23, 2019 · 2 comments

Comments

@dfritsch86
Copy link

I need to dynamically change request headers, e.g. to switch bearer tokens when i reached the limit. How can i accomplish this?

@dblock
Copy link
Collaborator

dblock commented Apr 24, 2019

I believe right now this would require you to create a new instance of a client. We should call it a bug. I'd like to be able to do:

client.options[:headers] = { new headers }

Maybe you can write a spec for this behavior and we can try and fix this?

@ashkan18
Copy link
Owner

yes, this makes sense, a failing spec would be 👌

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

No branches or pull requests

3 participants