Body

external interface Body (source)

Platform and version requirements: JS

Exposes the JavaScript Body to Kotlin

Properties

bodyUsed

abstract val bodyUsed: Boolean

Functions

arrayBuffer

abstract fun arrayBuffer(): Promise<ArrayBuffer>

blob

abstract fun blob(): Promise<Blob>

formData

abstract fun formData(): Promise<FormData>

json

abstract fun json(): Promise<Any?>

text

abstract fun text(): Promise<String>

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.

Inheritors

Request

open external class Request : Body

Exposes the JavaScript Request to Kotlin

Response

open external class Response : Body

Exposes the JavaScript Response to Kotlin