trait RequestInit extends Object
See RequestInit in Fetch API The underlying object is a dictionary. This trait is here to help encode the types.
- Annotations
- @JSType()
- Alphabetic
- By Inheritance
- RequestInit
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract val body: UndefOr[BodyInit]
- abstract val cache: UndefOr[RequestCache]
- abstract val credentials: UndefOr[RequestCredentials]
- abstract val headers: UndefOr[HeadersInit]
- abstract val integrity: UndefOr[String]
- abstract val keepalive: UndefOr[Boolean]
- abstract val method: UndefOr[HttpMethod]
- abstract val mode: UndefOr[RequestMode]
- abstract val redirect: UndefOr[RequestRedirect]
- abstract val referrer: UndefOr[String]
- abstract val referrerPolicy: UndefOr[ReferrerPolicy]
- abstract val signal: UndefOr[AbortSignal]
-
abstract
val
window: UndefOr[Null]
The whatwg spec section on RequestInit dictionary has a comment that states that this value "can only be set to null".
The whatwg spec section on RequestInit dictionary has a comment that states that this value "can only be set to null". In the detailed steps section for the Request(input,init) constructor it says even more clearly: "If init's window member is present and it is not null, throw a TypeError."
Concrete Value Members
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
valueOf(): Any
- Definition Classes
- Object