XMLHttpRequest request({
String url
// type can be buffer, blob, text, or document
optional String type = "buffer"
optional String|ArrayBuffer|Blob|FormData|Document data
optional Function callback(type data)
optional Function onerror()