Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/keywork/http/mod.ts>isCompressible

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
function isCompressible
Re-export
import { isCompressible } from "https://deno.land/x/keywork@v6.2.1/http/mod.ts";

Checks if a given MIME-type is compressible.

MIME type information is provided by the optional mime-db package, which can be quite large when bundled with your application.

Otherwise, the MIME type is assumed to be compressible if text, json, or xml.

Parameters

mimeType: string
optional
db: MimeDatabase

Returns

boolean