-
Updated
Nov 3, 2021 - JavaScript
fetch
Here are 1,984 public repositories matching this topic...
From time to time i see ppl using data instead of body which is wrong.
happened just recently in node-fetch/node-fetch#481 (comment)
how do you feel about adding a little warning message that can only appear once. (kinda like node reports that you are using experimental apis)
if ('data' in bodyInit && notWarned) {
console.warn('use body iFor some reason Amazon REST api's require the content-type to be set to "application/x-amz-json-1.1" instead of the standard "application/json"
Currently the content-type header is set automatically for json data overriding any headers passed in to the request.
It would be useful to first check if the header is set before overriding it:
if (!this.request.headers.set('content-type')) {
Port tests from Got
-
Updated
Aug 6, 2021 - JavaScript
-
Updated
Oct 7, 2021 - TypeScript
-
Updated
Mar 18, 2021 - Vue
Presumably these should result in a network error. The current specification doesn't state anything and it's not tested either.
See the README for instructions on where to add tests. In the specification the "blob" case of https://fetch.spec.whatwg.org/#scheme-fetch needs updating to handle current URL’s blob URL entry being null.
-
Updated
Oct 19, 2021 - JavaScript
-
Updated
Oct 6, 2021 - JavaScript
-
Updated
Aug 19, 2020 - JavaScript
-
Updated
Oct 29, 2019 - Java
-
Updated
Nov 6, 2021 - JavaScript
-
Updated
Oct 5, 2021 - TypeScript
-
Updated
Oct 6, 2021 - TypeScript
-
Updated
Jul 3, 2019 - TypeScript
-
Updated
Jan 21, 2021 - Objective-C
-
Updated
Feb 20, 2021 - JavaScript
-
Updated
May 8, 2019 - JavaScript
-
Updated
Aug 10, 2021 - TypeScript
-
Updated
Jan 23, 2021 - JavaScript
-
Updated
Mar 29, 2021 - HTML
-
Updated
Nov 5, 2021 - JavaScript
Improve this page
Add a description, image, and links to the fetch topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the fetch topic, visit your repo's landing page and select "manage topics."
The documentation for
mutatetalks about local mutation for faster feedback, but the documented way to use it only mutates after a promise has resolved - in other words, not immediately.As a result, I've found myself writing code in this kind of pattern: