-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pq): use
accept-encoding: gzip
when downloading PQL chunks (#4622
) The server that serves chunks support `accept-encoding: gzip` (and in fact, the chunks are currently stored GZIPped so getting them compressed is a server-side no-op) but we forgot to enable compressed streaming when originally writing the manifest polling code. In order to use reqwest's auto-gzip feature, you have to enable the gzip feature on the crate, and this also turns it on by default. While it's likely that this is a beneficial feature in other parts of Router, I did my best to disable it in all other uses of reqwest in apollo-router that I could find. (If nothing else, this was necessary to fix the `it_compress_response_body` test which uses a reqwest::Client to make sure that Router returns compressed bodies properly.) Co-authored-by: Geoffroy Couprie <apollo@geoffroycouprie.com> Co-authored-by: Coenen Benjamin <benjamin.coenen@hotmail.com>
- Loading branch information
1 parent
4925ec9
commit 05a651d
Showing
9 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### Use gzip compression when downloading Persisted Query manifests | ||
|
||
Router will now request gzip compression when downloading Persisted Query manifests for improved network efficiency. | ||
|
||
By [@glasser](https://github.com/glasser) in https://github.com/apollographql/router/pull/4622 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters