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
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val body: UndefOr[BodyInit]
- Annotations
- @JSOptional()
- val cache: UndefOr[RequestCache]
- Annotations
- @JSOptional()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val credentials: UndefOr[RequestCredentials]
- Annotations
- @JSOptional()
- val duplex: UndefOr[RequestDuplex]
"half" is the only valid value and it is for initiating a half-duplex fetch (i.e., the user agent sends the entire request before processing the response).
"half" is the only valid value and it is for initiating a half-duplex fetch (i.e., the user agent sends the entire request before processing the response).
- Annotations
- @JSOptional()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val headers: UndefOr[HeadersInit]
- Annotations
- @JSOptional()
- val integrity: UndefOr[String]
- Annotations
- @JSOptional()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val keepalive: UndefOr[Boolean]
- Annotations
- @JSOptional()
- val method: UndefOr[HttpMethod]
- Annotations
- @JSOptional()
- val mode: UndefOr[RequestMode]
- Annotations
- @JSOptional()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- val redirect: UndefOr[RequestRedirect]
- Annotations
- @JSOptional()
- val referrer: UndefOr[String]
- Annotations
- @JSOptional()
- val referrerPolicy: UndefOr[ReferrerPolicy]
- Annotations
- @JSOptional()
- val signal: UndefOr[AbortSignal]
- Annotations
- @JSOptional()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- 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."
- Annotations
- @JSOptional()