Module salvo_extra::compression[][src]

Expand description

Compress the body of a response.

Structs

CompressionHandler

Enums

CompressionAlgo

Functions

Create a middleware that compresses the Body using brotli, adding content-encoding: br to the Response’s HeaderMap

Create a middleware that compresses the Body using deflate, adding content-encoding: deflate to the Response’s HeaderMap

Create a middleware that compresses the Body using gzip, adding content-encoding: gzip to the Response’s HeaderMap