ashkan18 / graphlient

Ruby GraphQL Client
MIT License
251 stars 43 forks source link

[FEATURE] Expose underlying HTTP response #109

Open hjoseph96 opened 9 months ago

hjoseph96 commented 9 months ago

Describe the bug I am looking for rate limiting headers in the graphql response -- but I only get back the response body.

These are the headers: https://anilist.gitbook.io/anilist-apiv2-docs/overview/rate-limiting

Am I missing something?

To Reproduce

response = @client.query @page_query, { page: 1, perPage: 100 }

Expected behavior I expect the response to have access to the headers from the request.

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2023-12-25 at 4 24 26 PM
dblock commented 9 months ago

We should expose the underlying response. Feel free to contribute!