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()
})
Note: In order to use the document
type with text/html
requests, make sure to include my DOMParser HTML extension.