-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support adding additional headers in client #857
Comments
1 task
Fixed by #861 in 0.10 |
I got issue with this
when I mutation query which need header
It doesn't read my header at all, any idea ? I have look your PR and implement it, no luck to me |
@harmnot how are you reading the header back into context? seems like you need some middleware to move the value from the http header into context? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Current client implementation does not support adding additional Headers
What did you expect?
The ability to set custom Headers using the client when making a req.
This is handy for testing against GraphQL servers that have authentication.
For example
client.Header.Add("authorization",
"abcd1234")`(I've hacked it locally to make it work for me, happy to submit a PR. Should be backward compatible)
versions
The text was updated successfully, but these errors were encountered: