tower-http icon indicating copy to clipboard operation
tower-http copied to clipboard

Do compress grpc-web responses

Open bouk opened this issue 2 years ago • 2 comments

Related: https://github.com/tower-rs/tower-http/issues/215

Motivation

grpc-web responses aren't compressed right now, but they should be.

Solution

Add exception for application/grpc-web and change exception filter to use starts_with so we match on any encoding format.

bouk avatar Sep 11 '23 07:09 bouk

@jplatte can you take a look at this one?

bouk avatar Mar 25 '24 12:03 bouk

Is there a piece of documentation or article that you can link to for justification / proof that this is the right thing to do? I'm not really familiar with GRPC.

jplatte avatar Apr 07 '24 13:04 jplatte