Skip to content

feat: request compact prettyPrint=false JSON responses from the API - #1600

Open
pawciobiel wants to merge 1 commit into
burnash:masterfrom
pawciobiel:feat/compact-json-by-default
Open

feat: request compact prettyPrint=false JSON responses from the API#1600
pawciobiel wants to merge 1 commit into
burnash:masterfrom
pawciobiel:feat/compact-json-by-default

Conversation

@pawciobiel

Copy link
Copy Markdown

Google APIs indent JSON by default, and gspread parses every response, so the whitespace only costs transfer and parse time. HTTPClient.request now sends prettyPrint=false unless the caller passes its own value.

Cassettes match on the URI, so all 128 were updated to carry the new parameter; recorded responses are unchanged.

Google APIs indent JSON by default, and gspread parses every response, so
the whitespace only costs transfer and parse time. HTTPClient.request now
sends prettyPrint=false unless the caller passes its own value.

Cassettes match on the URI, so all 128 were updated to carry the new
parameter; recorded responses are unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant