Taxum / @taxum/core / middleware/compression / DEFAULT_PREDICATE
Variable: DEFAULT_PREDICATE
const
DEFAULT_PREDICATE:Predicate
Defined in: middleware/compression.ts:397
Default predicate for response compression.
All responses will be compressed unless:
- They're gRPC, which has its own protocol-specific compression scheme.
- It's an image as determined by the
content-type
starting withimage/
. - They're Server-Sent Events (SSE) as determined by the
content-type
beingtext/event-stream
. - The response is less than 32