mouvedia / cb-fetch Goto Github PK
View Code? Open in Web Editor NEWπ₯ Cross-Browser HTTP client
Home Page: https://npm.im/cb-fetch
License: MIT License
π₯ Cross-Browser HTTP client
Home Page: https://npm.im/cb-fetch
License: MIT License
http://www.softwareishard.com/blog/har-12-spec/#request subset
method β
url β
cookies
headers
queryString
postData
mimeType
params
text
comment
comment
(event: String, handler: Function) => Object
responseXML
probably requires an Object.assign
polyfill
https://www.npmjs.com/package/object-assign-mdn
not https://www.npmjs.com/package/object-assign-shim
define(name: String, value: String)
define(options: Object)
https://github.com/Mouvedia/cb-fetch#query
https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-02.html
https://github.com/Mouvedia/cb-fetch/blob/master/index.js#L954
action = supportBody ? 'setBody' : 'addQueryString',
https://cdn.jsdelivr.net/combine/npm/@string/isstring/isString.min.js,npm/cb-fetch/index.min.js
https://stackoverflow.com/questions/31061838
https://developers.google.com/web/updates/2017/09/abortable-fetch
https://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_a_1.html
web-platform-tests/wpt#6484 (comment)
JakeChampion/fetch@da07fa1
https://lists.w3.org/Archives/Public/public-webapps/2013JanMar/0545.html
!!self.Request && 'signal' in self.Request.prototype
It is not really correct to manually force a connection to go away by nulling out various
aspects of the request object or callback function or overwriting an existing XHR with another
request. It may have a similar feeling to the end user in some cases because a callback wonβt
happen, but any changes may still happen on the server as the request, once sent, still happened.
https://stackoverflow.com/a/16238421/
https://stackoverflow.com/q/389456/
https://stackoverflow.com/a/8051322/
https://marco.org/2007/04/27/p3p-sucks-how-to-get-frame-cookies-unblocked-in-ie6
https://web.archive.org/web/20130308142134/http://msdn.microsoft.com/en-us/library/ms537343%28v=vs.85%29.aspx#unsatisfactory_cookies
http://blog.sweetxml.org/2007/10/minimal-p3p-compact-policy-suggestion.html
https://web.archive.org/web/20141023230617/http://www.privacychoice.org:80/trackerblock/ie
CORS withCredentials
for IE 10/11
N.B. Internet Explorer 11 for Windows 10 doesn't support P3P
document.documentMode==11
!!window.MSInputMethodContext && !!document.documentMode
!(window.ActiveXObject) && "ActiveXObject" in window
document.documentElement.style[ '-ms-scroll-limit'] && document.documentElement.style['-ms-ime-align']
Does Windows Phone 8.1 support P3P?
see https://msdn.microsoft.com/en-us/library/windows/desktop/dn384116(v=vs.85).aspx
{
foo: ['bar', 'qux']
}
// becomes
"foo%5B0%5D=bar&foo%5B1%5D=qux"
{ signal: AbortSignal.timeout(options.timeout) }
Firefox 100
Chrome 103Ξ²
Retry-After
headerPromise.race
redirect: "follow" | "error" | "manual"
referrer: "no-referrer" | "client" | URL
referrerPolicy: "no-referrer" | "no-referrer-when-downgrade" | "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | "strict-origin-when-cross-origin" | "unsafe-url"
integrity: String
keepalive: Boolean
cache
will be covered by #4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.