toggle menu
kilua-project
0.0.17
common
switch theme
search in API
kilua-dom
/
web.xhr
/
XMLHttpRequest
XMLHttp
Request
open
class
XMLHttpRequest
:
XMLHttpRequestEventTarget
,
JsAny
Exposes the JavaScript
XMLHttpRequest
to Kotlin
Members
Constructors
XMLHttp
Request
Link copied to clipboard
constructor
(
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
onabort
Link copied to clipboard
open
var
onabort
:
(
Event
)
->
Unit
?
onerror
Link copied to clipboard
open
var
onerror
:
(
Event
)
->
Unit
?
onload
Link copied to clipboard
open
var
onload
:
(
Event
)
->
Unit
?
onloadend
Link copied to clipboard
open
var
onloadend
:
(
Event
)
->
Unit
?
onloadstart
Link copied to clipboard
open
var
onloadstart
:
(
ProgressEvent
)
->
Unit
?
onprogress
Link copied to clipboard
open
var
onprogress
:
(
ProgressEvent
)
->
Unit
?
onreadystatechange
Link copied to clipboard
var
onreadystatechange
:
(
Event
)
->
Unit
?
ontimeout
Link copied to clipboard
open
var
ontimeout
:
(
Event
)
->
Unit
?
ready
State
Link copied to clipboard
open
val
readyState
:
Short
response
Link copied to clipboard
open
val
response
:
JsAny
?
response
Text
Link copied to clipboard
open
val
responseText
:
String
response
Type
Link copied to clipboard
var
responseType
:
XMLHttpRequestResponseType
response
URL
Link copied to clipboard
open
val
responseURL
:
String
response
XML
Link copied to clipboard
open
val
responseXML
:
Document
?
status
Link copied to clipboard
open
val
status
:
Short
status
Text
Link copied to clipboard
open
val
statusText
:
String
timeout
Link copied to clipboard
var
timeout
:
Int
upload
Link copied to clipboard
open
val
upload
:
XMLHttpRequestUpload
with
Credentials
Link copied to clipboard
var
withCredentials
:
Boolean
Functions
abort
Link copied to clipboard
fun
abort
(
)
add
Event
Listener
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
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
AddEventListenerOptions
)
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
get
All
Response
Headers
Link copied to clipboard
fun
getAllResponseHeaders
(
)
:
String
get
Response
Header
Link copied to clipboard
fun
getResponseHeader
(
name
:
String
)
:
String
?
open
Link copied to clipboard
fun
open
(
method
:
String
,
url
:
String
)
fun
open
(
method
:
String
,
url
:
String
,
async
:
Boolean
,
username
:
String
?
,
password
:
String
?
)
override
Mime
Type
Link copied to clipboard
fun
overrideMimeType
(
mime
:
String
)
remove
Event
Listener
Link copied to clipboard
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
)
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
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
EventListenerOptions
)
send
Link copied to clipboard
fun
send
(
)
fun
send
(
body
:
String
)
fun
send
(
body
:
Document
)
fun
send
(
body
:
URLSearchParams
)
fun
send
(
body
:
Blob
)
fun
send
(
body
:
FormData
)
set
Request
Header
Link copied to clipboard
fun
setRequestHeader
(
name
:
String
,
value
:
String
)