Skip to main content
Module

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

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

Provides information about the context from which the request originated. This allows a server to make decisions about whether a request should be allowed based on where the request came from and how the resource will be used.

Properties

Sec-Fetch-Site: string

It is a request header that indicates the relationship between a request initiator's origin and its target's origin. It is a Structured Header whose value is a token with possible values cross-site, same-origin, same-site, and none.

Sec-Fetch-Mode: string

It is a request header that indicates the request's mode to a server. It is a Structured Header whose value is a token with possible values cors, navigate, no-cors, same-origin, and websocket.

Sec-Fetch-User: string

It is a request header that indicates whether or not a navigation request was triggered by user activation. It is a Structured Header whose value is a boolean so possible values are ?0 for false and ?1 for true.

Sec-Fetch-Dest: string

It is a request header that indicates the request's destination to a server. It is a Structured Header whose value is a token with possible values audio, audioworklet, document, embed, empty, font, image, manifest, object, paintworklet, report, script, serviceworker, sharedworker, style, track, video, worker, and xslt.

Service-Worker-Navigation-Preload: string

A request header sent in preemptive request tofetch() a resource during service worker boot.