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
-
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
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
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()