RequestInit

interface RequestInit

Deno-compatible request options. This runtime has no browser cookie jar or CORS context; browser-oriented fields do not relax Weeble’s outbound-network policy.

exported from runtime.d

Properties

Property

Type

Description

body?

BodyInit | null

cache?

RequestCache

credentials?

RequestCredentials

duplex?

"half"

Required by the Fetch API when body is a ReadableStream .

headers?

HeadersInit

integrity?

string

keepalive?

boolean

method?

string

mode?

RequestMode

redirect?

RequestRedirect

referrer?

string

referrerPolicy?

ReferrerPolicy

signal?

AbortSignal | null

window?

null