FetchMetadataRequestHeaders
Overview
Usage
- Node
- Deno
import { FetchMetadataRequestHeaders } from 'keywork/http/headers'
import { FetchMetadataRequestHeaders } from 'https://deno.land/x/keywork/http/headers'
Properties
Sec-Fetch-Dest
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
.
Defined in
http/headers/mod.ts:387
Sec-Fetch-Mode
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
.
Defined in
http/headers/mod.ts:383
Sec-Fetch-Site
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
.
Defined in
http/headers/mod.ts:381
Sec-Fetch-User
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.
Defined in
http/headers/mod.ts:385
Service-Worker-Navigation-Preload
Service-Worker-Navigation-Preload: `string`
A request header sent in preemptive request tofetch()
a resource during service worker boot.
Defined in
http/headers/mod.ts:389
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.