XMLHttpRequest
open class XMLHttpRequest : XMLHttpRequestEventTargetExposes the JavaScript XMLHttpRequest to Kotlin
Constructors
<init>
Exposes the JavaScript XMLHttpRequest to Kotlin
XMLHttpRequest()Properties
onreadystatechange
var onreadystatechange: ((Event) -> dynamic)?readyState
open val readyState: Shortresponse
open val response: Any?responseText
open val responseText: StringresponseType
var responseType: XMLHttpRequestResponseTyperesponseURL
open val responseURL: StringresponseXML
open val responseXML: Document?status
open val status: ShortstatusText
open val statusText: Stringtimeout
var timeout: Intupload
open val upload: XMLHttpRequestUploadwithCredentials
var withCredentials: BooleanFunctions
abort
fun abort()getAllResponseHeaders
fun getAllResponseHeaders(): StringgetResponseHeader
fun getResponseHeader(name: String): String?open
fun open(method: String, url: String)fun open(
method: String,
url: String,
async: Boolean,
username: String? = definedExternally,
password: String? = definedExternally)overrideMimeType
fun overrideMimeType(mime: String)send
fun send(body: dynamic = definedExternally)setRequestHeader
fun setRequestHeader(name: String, value: String)Companion Object Properties
DONE
val DONE: ShortHEADERS_RECEIVED
val HEADERS_RECEIVED: ShortLOADING
val LOADING: ShortOPENED
val OPENED: ShortUNSENT
val UNSENT: Short