shurcooL / githubv4

Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql).
MIT License
1.11k stars 89 forks source link

Enable starfox preview #44

Closed brejoc closed 5 years ago

brejoc commented 5 years ago

I would like to enable the starfox-preview. In order to do that, a header must be set like this: eq.Header.Add("Accept", "application/vnd.github.starfox-preview")

I tested this with setting it in ctxhttp.go, which is of course only good for testing. Where would be the right place to accomplish this? The Post() func in ctxhttp.go immediately returns the response with the execution of Do(). Thx!

dmitshur commented 5 years ago

The tracking issue for schema preview support is #34. It's not implemented yet, see the discussion there for more information.

brejoc commented 5 years ago

Thanks for your answer, @dmitshur. Then let's close this one.