Compression
Compress responses with gzip or deflate using compress()
import { , } from "@senrijs/senri";
const = ();
.(());- It compresses with gzip or deflate, following the client's
Accept-Encoding - Bodies smaller than 1 KB are sent as is
- Streams sent bit by bit (such as SSE) are not compressed, so that they do not look stuck
- With
etag(), registercompress()first
Options
Prop
Type