-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
var Request = Classes.Develry.Request, | ||
const RESPONSE = Symbol('response'); | ||
|
||
let Request = Classes.Develry.Request, | ||
original_send = XMLHttpRequest.prototype.send, | ||
original_open = XMLHttpRequest.prototype.open, | ||
START_SYMBOL = Symbol('start'); | ||
|
@@ -449,9 +451,22 @@ Request.setMethod(function _make_request() { | |
} | ||
}); | ||
|
||
this[RESPONSE] = pledge; | ||
|
||
return pledge; | ||
}); | ||
|
||
/** | ||
* Get the response | ||
* | ||
* @author Jelle De Loecker <[email protected]> | ||
* @since 0.8.17 | ||
* @version 0.8.17 | ||
*/ | ||
Request.setMethod(function getResponse() { | ||
return this[RESPONSE]; | ||
}); | ||
|
||
/** | ||
* Get a response header | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
var dns_cache, | ||
const RESPONSE = Symbol('response'); | ||
|
||
let dns_cache, | ||
Request = Blast.Classes.Develry.Request, | ||
https, | ||
http, | ||
|
@@ -411,9 +413,22 @@ Request.setMethod(function _make_request(options) { | |
} | ||
} | ||
|
||
this[RESPONSE] = pledge; | ||
|
||
return pledge; | ||
}); | ||
|
||
/** | ||
* Get the response | ||
* | ||
* @author Jelle De Loecker <[email protected]> | ||
* @since 0.8.17 | ||
* @version 0.8.17 | ||
*/ | ||
Request.setMethod(function getResponse() { | ||
return this[RESPONSE]; | ||
}); | ||
|
||
/** | ||
* Get a response header | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "protoblast", | ||
"description": "Native object expansion library", | ||
"version": "0.8.16", | ||
"version": "0.8.17-alpha", | ||
"author": "Jelle De Loecker <[email protected]>", | ||
"keywords": [ | ||
"prototype", | ||
|