Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compression support #872

Closed
jobergum opened this issue Aug 13, 2024 · 1 comment
Closed

Add compression support #872

jobergum opened this issue Aug 13, 2024 · 1 comment
Assignees
Milestone

Comments

@jobergum
Copy link

Adding accept-encoding to the request will make Vespa compress the response, which can reduce latency for cross-region query traffic:

Accept-Encoding: gzip

@thomasht86
Copy link
Collaborator

This is the default behavior for both httpx and requests.
See
They will also be decompressed automatically.
See #883

Any gzip and deflate HTTP response encodings will automatically be decoded for you.

Requests automatically decompresses gzip-encoded responses, and does its best to decode response content to unicode when possible.

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

No branches or pull requests

3 participants