Skip to main content
Latest
method oak.Request.prototype.acceptsCharsets
import { oak } from "https://deno.land/x/create_react_app@v0.1.2/deps.ts";
const { Request } = oak;

Returns an array of charsets, accepted by the requestor, in order of preference. If there are no charsets supplied by the requestor, undefined is returned.

Returns

string[] | undefined

For a given set of charsets, return the best match accepted by the requestor. If there are no charsets that match, then the method returns undefined.

Parameters

...charsets: string[]

Returns

string | undefined