XMLHttpRequest$Typings extension

on

Properties

abort ↔ void Function()
getter/setter pair
addEventListener → ({void Function<K$>(XMLHttpRequestEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
Overload accessor: $1, $2
no setter
done num
no setter
getAllResponseHeaders String Function()
getter/setter pair
getResponseHeader String? Function(String)
getter/setter pair
headersReceived num
no setter
loading num
no setter
onreadystatechange ↔ dynamic Function(Event)?
MDN Reference
getter/setter pair
open → ({void Function(String method, Object url) $1, void Function(String method, Object url, bool async, [String? username, String? password]) $2})
Overload accessor: $1, $2
no setter
opened num
no setter
overrideMimeType ↔ void Function(String)
getter/setter pair
readyState num
Returns client's state.
no setter
removeEventListener → ({void Function<K$>(XMLHttpRequestEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
Overload accessor: $1, $2
no setter
response → dynamic
Returns the response body.
no setter
responseText String
Returns response as text.
no setter
responseType XMLHttpRequestResponseType
Returns the response type.
getter/setter pair
responseURL String
MDN Reference
no setter
send ↔ void Function([Object?])
getter/setter pair
setRequestHeader ↔ void Function(String, String)
getter/setter pair
status num
MDN Reference
no setter
statusText String
MDN Reference
no setter
timeout num
Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
getter/setter pair
unsent num
no setter
upload XMLHttpRequestUpload
Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
no setter
withCredentials bool
True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
getter/setter pair