XMLHttpRequest

Exposes the JavaScript XMLHttpRequest to Kotlin

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var onabort: (Event) -> Unit?
Link copied to clipboard
open var onerror: (Event) -> Unit?
Link copied to clipboard
open var onload: (Event) -> Unit?
Link copied to clipboard
open var onloadend: (Event) -> Unit?
Link copied to clipboard
Link copied to clipboard
open var onprogress: (ProgressEvent) -> Unit?
Link copied to clipboard
Link copied to clipboard
open var ontimeout: (Event) -> Unit?
Link copied to clipboard
open val readyState: Short
Link copied to clipboard
open val response: JsAny?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val status: Short
Link copied to clipboard
open val statusText: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun abort()
Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?)
fun addEventListener(type: String, callback: EventListener?)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: AddEventListenerOptions)
fun addEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun open(method: String, url: String)
fun open(method: String, url: String, async: Boolean, username: String?, password: String?)
Link copied to clipboard
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: EventListenerOptions)
fun removeEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
fun send()
fun send(body: String)
fun send(body: Document)
fun send(body: Blob)
fun send(body: FormData)
Link copied to clipboard
fun setRequestHeader(name: String, value: String)