XMLHttpRequest

JS
1.1
open class XMLHttpRequest : XMLHttpRequestEventTarget

Exposes the JavaScript XMLHttpRequest to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript XMLHttpRequest to Kotlin

XMLHttpRequest()

Properties

JS
1.1

onreadystatechange

var onreadystatechange: ((Event) -> dynamic)?
JS
1.1

readyState

open val readyState: Short
JS
1.1

response

open val response: Any?
JS
1.1

responseText

open val responseText: String
JS
1.1

responseType

var responseType: XMLHttpRequestResponseType
JS
1.1

responseURL

open val responseURL: String
JS
1.1

responseXML

open val responseXML: Document?
JS
1.1

status

open val status: Short
JS
1.1

statusText

open val statusText: String
JS
1.1

timeout

var timeout: Int
JS
1.1

upload

open val upload: XMLHttpRequestUpload
JS
1.1

withCredentials

var withCredentials: Boolean

Functions

JS
1.1

abort

fun abort()
JS
1.1

getAllResponseHeaders

fun getAllResponseHeaders(): String
JS
1.1

getResponseHeader

fun getResponseHeader(name: String): String?
JS
1.1

open

fun open(method: String, url: String)
fun open(
    method: String,
    url: String,
    async: Boolean,
    username: String? = definedExternally,
    password: String? = definedExternally)
JS
1.1

overrideMimeType

fun overrideMimeType(mime: String)
JS
1.1

send

fun send(body: dynamic = definedExternally)
JS
1.1

setRequestHeader

fun setRequestHeader(name: String, value: String)

Companion Object Properties

JS
1.1

DONE

val DONE: Short
JS
1.1

HEADERS_RECEIVED

val HEADERS_RECEIVED: Short
JS
1.1

LOADING

val LOADING: Short
JS
1.1

OPENED

val OPENED: Short
JS
1.1

UNSENT

val UNSENT: Short