Skip to main content
Module

x/oak_compress/mod.ts>CompressOptions

oak middleware, support br, gzip and deflate
Latest
interface CompressOptions
Re-export
import { type CompressOptions } from "https://deno.land/x/oak_compress@v0.0.2/mod.ts";

Interface describing compress options that can be set.

Properties

optional
filter: CompressFilter
optional
methods: CompressMethods[]

Configures the methods will encode with br.

optional
minSize: number

If content length is less than minSize (byte), then will not br.

optional
maxSize: number

If content length is larger than maxSize (byte), then will not br.

optional
extensions: string[]