forked from shurcooL/graphql
-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Description
For debug purposes it would be nice to log requests and responses. This is to some extend possible by using a custom http.Do()
er. However, the Doer will not- afaiu- be aware if the server is using gzip'ed responses. I'd be interest in logging the response in plaintext.
Update
The transport doesn't see the gzip'ed data transparently due to
func (c *Client) doHttpRequest(ctx context.Context, body io.ReadSeeker) *rawGraphQLResult {
request.Header.Add("Accept-Encoding", "gzip")
It might be sufficient to remove this client header and let the http.Transport
determine if it should be added automatically (I cannot say under which conditions it would do so).
mnggh
Metadata
Metadata
Assignees
Labels
No labels