Response

open external class Response(body: dynamic = definedExternally, init: ResponseInit = definedExternally) : Body

Exposes the JavaScript Response to Kotlin

Constructors

Link copied to clipboard
fun Response(body: dynamic = definedExternally, init: ResponseInit = definedExternally)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun arrayBuffer(): Promise<ArrayBuffer>
Link copied to clipboard
open override fun blob(): Promise<Blob>
Link copied to clipboard
Link copied to clipboard
open override fun formData(): Promise<FormData>
Link copied to clipboard
open override fun json(): Promise<Any?>
Link copied to clipboard
open override fun text(): Promise<String>

Properties

Link copied to clipboard
open val body: dynamic
Link copied to clipboard
open override val bodyUsed: Boolean
Link copied to clipboard
open val headers: Headers
Link copied to clipboard
open val ok: Boolean
Link copied to clipboard
open val redirected: Boolean
Link copied to clipboard
open val status: Short
Link copied to clipboard
open val statusText: String
Link copied to clipboard
Link copied to clipboard
open val type: ResponseType
Link copied to clipboard
open val url: String