Skip to main content
Module

x/opine/deps.ts>Accepts#encodings

Minimalist web framework for Deno ported from ExpressJS.
Latest
method Accepts.prototype.encodings
import { Accepts } from "https://deno.land/x/opine@2.3.4/deps.ts";

Return accepted encodings or best fit based on encodings.

Given Accept-Encoding: gzip, deflate an array sorted by quality is returned:

['gzip', 'deflate']

Parameters

optional
encodings: string[]

Returns

string[] | string | false