Request

open external class Request : Body (source)

Platform and version requirements: JS

Exposes the JavaScript Request to Kotlin

Constructors

<init>

Request(
    input: dynamic,
    init: RequestInit = definedExternally)

Exposes the JavaScript Request to Kotlin

Properties

bodyUsed

open val bodyUsed: Boolean

cache

open val cache: RequestCache

credentials

open val credentials: RequestCredentials

destination

open val destination: RequestDestination

headers

open val headers: Headers

integrity

open val integrity: String

keepalive

open val keepalive: Boolean

method

open val method: String

mode

open val mode: RequestMode

redirect

open val redirect: RequestRedirect

referrer

open val referrer: String

referrerPolicy

open val referrerPolicy: dynamic

type

open val type: RequestType

url

open val url: String

Functions

arrayBuffer

open fun arrayBuffer(): Promise<ArrayBuffer>

blob

open fun blob(): Promise<Blob>

clone

fun clone(): Request

formData

open fun formData(): Promise<FormData>

json

open fun json(): Promise<Any?>

text

open fun text(): Promise<String>