Optional
acceptOptional
compressionLevel of compression data should be compressed with.
Supports the following pre-defined values:
"fastest"
: fastest quality of compression, usually produces bigger size."best"
: best quality of compression, usually produces smallest size."default"
: default quality of compression defined by the selected compression algorithm.You can also set this value to a number
to define a precise quality based on the underlying compression
algorithms' qualities.
The interpretation of this depends on the algorithm chosen and the specific implementation backing it.
Qualities are implicitly clamped to the algorithm's maximum.
Optional
predicatePredicate to decide whether the response should be compressed.
If not specified, responses will be compressed unless:
content-type
starting with image/
.content-type
being text/event-stream
.
Encodings accepted by this layer.
Defaults to accepting all encodings.