Skip to content

How to enable Brotli compression for server responses? #2497

Answered by seanmonstar
spikecodes asked this question in Q&A
Discussion options

You must be logged in to vote

hyper does not include a Brotli implementation in it. You could probably use something like async-compression to create a Stream that compresses your data, and make that be the body element of your http::Responses.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@spikecodes
Comment options

Answer selected by spikecodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2496 on April 08, 2021 19:10.