XMLHttpRequest Level 2 defines various new methods over XMLHttRequest level 1, such as the FormData object and new response types.
XMLHttpRequest level 2 adds new functionality over level 1, including:
- The
FormData
object. - Request-related:
timeout
attribute.withCredentials
attribute.upload
attribute.- Support for new data types at the
send()
method:ArrayBuffer
s,Blob
s, andFormData
.
- Response-related:
overrideMimeType
method.reponseType
attribute, which enables other response types than plain text.response
attribute, which holds a response whose type is defined in.responseType
.
- Progress events