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

x/keywork/http/headers/mod.ts>ContentNegotiation

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
interface ContentNegotiation
import { type ContentNegotiation } from "https://deno.land/x/keywork@v6.0.1/http/headers/mod.ts";

Properties

Accept: string

Informs the server about the MIME Types of data that can be sent back.

Accept-Encoding: string

The encoding algorithm that can be used on the resource sent back.

Accept-Language: string

Informs the server about the human language the server is expected to send back. This is a hint and is not necessarily under the full control of the user The server should always pay attention not to override an explicit user choice (like selecting a language from a dropdown).