Works with
•JSR Score70%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
Contains the functions accepts, acceptsEncodings, and
acceptsLanguages to provide content negotiation capabilities.
Functions
f
Returns an array of media types accepted by the request, in order of preference. If there are no media types supplied in the request, then any media type selector will be returned.
f
Returns an array of content encodings accepted by the request, in order of
preference. If there are no encoding supplied in the request, then ["*"]
is returned, implying any encoding is accepted.
f
Returns an array of languages accepted by the request, in order of
preference. If there are no languages supplied in the request, then ["*"]
is returned, imply any language is accepted.