Skip to content

Instantly share code, notes, and snippets.

@Mouvedia
Last active January 30, 2022 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mouvedia/3d842d87fcab633718f4 to your computer and use it in GitHub Desktop.
Save Mouvedia/3d842d87fcab633718f4 to your computer and use it in GitHub Desktop.
https://github.com/Mouvedia/cb-fetch
// xhr.onabort
// xhr.onerror
// xhr.ontimeout
// XMLHttpRequest({mozAnon: true});
// if (typeof obj.then === "function")
mode
"cors"
"no-cors" (service worker) GET POST HEAD only
"same-origin" (default)
//"cors-with-forced-preflight" https://github.com/whatwg/fetch/commit/2ca5730755795a4fc5e50c06f8fc477adb931d74
"navigate"
cache
"default"
"no-store"
"reload"
"no-cache"
"force-cache"
"only-if-cached" (same-origin only)
https://social.msdn.microsoft.com/Forums/ie/en-US/30ef3add-767c-4436-b8a9-f1ca19b4812e/ //xdr.onprogress = function() {};
http://stackoverflow.com/questions/1746507/authoritative-position-of-duplicate-http-get-query-keys
https://github.com/visionmedia/superagent/blob/master/lib/client.js#L929
? https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context
https://codereview.chromium.org/1060033002/diff/60001/Source/modules/fetch/Request.cpp#newcode296
http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx
https://github.com/Raynos/xhr/blob/eccc209f939be7d1d7887fcebc24e337eec1be55/index.js#L70
https://github.com/Jxck/fetch/blob/master/headers.ts#L154
http://monsur.hossa.in/2007/12/28/XmlHttpRequest-status-and-statusText.html
http://ejohn.org/files/bugs/304/
http://www.ilinsky.com/articles/XMLHttpRequest/
http://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_r_2.html
https://bugzilla.mozilla.org/show_bug.cgi?id=1108181 //can't iterate on the Headers list of the instance
http://blogs.msdn.com/b/ieinternals/archive/2009/07/23/the-ie8-native-xmlhttprequest-object.aspx //PATCH
http://stackoverflow.com/a/27583212/248058 //XDR
https://github.com/d3/d3-request/blob/aea5ebd14347701528be0cfb8feef0075fe98b4a/src/xhr.js#L15 //http(s)
http://overturejs.com/docs/io/XHR.html#O_XHR_send //boundary marker (FormData)
https://github.com/fastmail/overture/commit/3ab52e7717751cea191f1eae7cc03a024e12c394
http://lawrence.ecorp.net/inet/samples/rs-xhr-nutshell.shtml //try catch open
interface XDomainRequest {
readonly attribute DOMString contentType;
attribute EventHandler onerror;
attribute EventHandler onload;
attribute EventHandler onprogress;
attribute EventHandler ontimeout;
readonly attribute DOMString responseText;
attribute long timeout;
void abort();
XDomainRequest create();
void open(DOMString method, DOMString url);
void send(any data);
};
var jscript_version = Number( new Function("/*@cc_on return @_jscript_version; @*\/")() );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment