blob: 715d1c6048d31db66d976e30a1867487bffcfe3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
var XMLHTTPRequest = (function(){
var xhr = function (opt) {
this.status = 0
this.readyState = 0
this.response = ""
this.responseText = ""
this.responseType = "" // "" arraybuffer blob document json text
this.responseXML = ""
this.statusText = ""
this.timeout = 0
this.onreadystatechange = function(){}
this.ontimeout = function(){}
this.onload = function(){}
this.headers = []
this.upload = {}
this.withCredentials = false
}
xhr.prototype.open = function(method, url, async, user, password){
}
xhr.prototype.abort = function(){
}
xhr.prototype.getAllResponseHeaders = function(){
}
xhr.prototype.getResponseHeader = function(){
}
xhr.prototype.overrideMimeType = function(){
}
xhr.prototype.setRequestHeader = function(key, value){
this.headers.push({ key: key, value: value })
}
xhr.prototype.send = function(data){
}
})()
|