Response

JS
1.1
open class Response : Body
(source)

Exposes the JavaScript Response to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript Response to Kotlin

Response (
body : dynamic = definedExternally ,
init : ResponseInit = definedExternally )

Properties

JS
1.1

body

open val body : dynamic
JS
1.1

bodyUsed

open val bodyUsed : Boolean
JS
1.1

headers

open val headers : Headers
JS
1.1

ok

open val ok : Boolean
JS
1.1

redirected

open val redirected : Boolean
JS
1.1

status

open val status : Short
JS
1.1

statusText

open val statusText : String
JS
1.1

trailer

open val trailer : Promise < Headers >
JS
1.1

type

open val type : ResponseType
JS
1.1

url

open val url : String

Functions

JS
1.1

arrayBuffer

open fun arrayBuffer ( ) : Promise < ArrayBuffer >
JS
1.1

blob

open fun blob ( ) : Promise < Blob >
JS
1.1

clone

fun clone ( ) : Response
JS
1.1

formData

open fun formData ( ) : Promise < FormData >
JS
1.1

json

open fun json ( ) : Promise < Any ? >
JS
1.1

text

open fun text ( ) : Promise < String >

Companion Object Functions

JS
1.1

error

fun error ( ) : Response
JS
1.1

redirect

fun redirect (
url : String ,
status : Short = definedExternally
) : Response