Skip to main content
Module

x/keywork/mod.ts>Middleware.CompressionEncoding

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
type alias Middleware.CompressionEncoding
import { type Middleware } from "https://deno.land/x/keywork@v6.2.1/mod.ts";
const { CompressionEncoding } = Middleware;

The compression format used when encoding the response body.

  • "gzip": GZIP Compressed Data Format
  • "deflate": ZLIB Compressed Data Format
  • "deflate-raw": ZLIB Compressed Data Format (without header such as in a ZIP file)
definition: "gzip" | "deflate" | "deflate-raw"