Module salvo_extra::compression[][src]

Compress the body of a response.

Structs

CompressionHandler

Enums

CompressionAlgo

Functions

brotli

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

deflate

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

gzip

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