shurcooL / githubv4

Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable starfox preview

brejoc opened this issue · comments

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!

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

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