Expand description
HTTP response compression middleware that normalizes the response body
back to jsonrpseeโs HttpBody so the layer can be conditionally
installed via tower::util::option_layer.
Ported from reth_rpc_layer::compression_layer.
Structsยง
- Compression
Layer ๐ - Compresses responses with a body above
min_body_sizebytes. - Compression
Service ๐
Constantsยง
Staticsยง
- COMPRESS_
MIN_ ๐BODY_ SIZE - RPC response compression policy, read from
COMPRESS_MIN_BODY_SIZE_VAR.
Functionsยง
- parse_
compress_ ๐min_ body_ size - Interpret a
COMPRESS_MIN_BODY_SIZE_VARvalue.