Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ability to add custom headers to the request #28
Currently the only header being set is the content type:
It would be helpful to allow setting custom headers in addition to the content-type since some graphql servers use headers for auth tokens and setting other variables.
It is possible to do this by using a custom HTTP client (that sets custom request headers before delegating to the underlying HTTP client).
See https://github.com/shurcooL/githubv4#authentication for more information. Please let me know if you're satisfied with that solution or if you have any additional questions.