Request

open external class Request(input: dynamic, init: RequestInit = definedExternally) : Body(source)

Exposes the JavaScript Request to Kotlin

Since Kotlin

1.1
open external class Request(input: JsAny?, init: RequestInit = definedExternally) : Body, JsAny(source)

Exposes the JavaScript Request to Kotlin

Since Kotlin

1.8

Constructors

Link copied to clipboard
constructor(input: dynamic, init: RequestInit = definedExternally)
constructor(input: JsAny?, init: RequestInit = definedExternally)

Properties

Link copied to clipboard
open override val bodyUsed: Boolean
Since Kotlin 1.1
open override val bodyUsed: Boolean
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open val headers: Headers
Since Kotlin 1.1
open val headers: Headers
Since Kotlin 1.8
Link copied to clipboard
open val integrity: String
Since Kotlin 1.1
open val integrity: String
Since Kotlin 1.8
Link copied to clipboard
open val keepalive: Boolean
Since Kotlin 1.1
open val keepalive: Boolean
Since Kotlin 1.8
Link copied to clipboard
open val method: String
Since Kotlin 1.1
open val method: String
Since Kotlin 1.8
Link copied to clipboard
open val mode: RequestMode
Since Kotlin 1.1
open val mode: RequestMode
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open val referrer: String
Since Kotlin 1.1
open val referrer: String
Since Kotlin 1.8
Link copied to clipboard
open val referrerPolicy: dynamic
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open val type: RequestType
Since Kotlin 1.1
open val type: RequestType
Since Kotlin 1.8
Link copied to clipboard
open val url: String
Since Kotlin 1.1
open val url: String
Since Kotlin 1.8

Functions

Link copied to clipboard
open override fun arrayBuffer(): Promise<ArrayBuffer>
Since Kotlin 1.1
open override fun arrayBuffer(): Promise<ArrayBuffer>
Since Kotlin 1.8
Link copied to clipboard
open override fun blob(): Promise<Blob>
Since Kotlin 1.1
open override fun blob(): Promise<Blob>
Since Kotlin 1.8
Link copied to clipboard
fun clone(): Request
Since Kotlin 1.1
fun clone(): Request
Since Kotlin 1.8
Link copied to clipboard
open override fun formData(): Promise<FormData>
Since Kotlin 1.1
open override fun formData(): Promise<FormData>
Since Kotlin 1.8
Link copied to clipboard
open override fun json(): Promise<Any?>
Since Kotlin 1.1
open override fun json(): Promise<JsAny?>
Since Kotlin 1.8
Link copied to clipboard
open override fun text(): Promise<String>
Since Kotlin 1.1
open override fun text(): Promise<JsString>
Since Kotlin 1.8
Link copied to clipboard

For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny> JsAny.unsafeCast(): T

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8