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

Instance-level Support for Headers #50

Open
d42ohpaz opened this issue Jul 20, 2018 · 0 comments
Open

Instance-level Support for Headers #50

d42ohpaz opened this issue Jul 20, 2018 · 0 comments

Comments

@d42ohpaz
Copy link

While I understand that I can set headers at the configuration level, it would be extra convenient to be able to set headers at runtime against the instance.

My initial use-case would be to set the Authorization header (i.e., I have a JWT that I want to use for a session). As it stands, if I'm not mistaken, I can only override the \CURLOPT_HTTPHEADER array, but I cannot add to it.

In other words, I have a default Content-Type in my configuration, but I want to add the Authorization header at runtime after I've authenticated and gotten my token.

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

1 participant