Skip to content

Taxum / @taxum/core / http / encodings

Function: encodings()

encodings(headers, supportedEncodings): [Encoding, number][]

Defined in: http/content-encoding.ts:108

Parses the accept-encoding headers and returns a list of pairings of supported encodings and their associated quality values (q-values).

Parameters

headers

HeaderMap

supportedEncodings

SupportedEncodings

Returns

[Encoding, number][]