compression#
- class litestar.middleware.compression.CompressionMiddleware#
Bases:
AbstractMiddleware
Compression Middleware Wrapper.
This is a wrapper allowing for generic compression configuration / handler middleware
- __init__(app: ASGIApp, config: CompressionConfig) None #
Initialize
CompressionMiddleware
- class litestar.middleware.compression.CompressionFacade#
Bases:
Protocol
A unified facade offering a uniform interface for different compression libraries.
- __init__(buffer: BytesIO, compression_encoding: CompressionEncoding | str, config: CompressionConfig) None #
Initialize
CompressionFacade
.