-
Updated
Oct 7, 2021 - JavaScript
fetch
Here are 1,947 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
processRequestBodyChunk or even processRequestBodyChunkSize would be more representative and either of those would make it clear it's different from processResponseBody, which is only invoked once and is actually passed a response.
Thanks to Tab for making me realize this.
Marking this as a good first issue as it is somewhat straightforward to rename this in various places, but note that thi
-
Updated
Oct 14, 2021 - JavaScript
-
Updated
Oct 6, 2021 - JavaScript
-
Updated
Aug 19, 2020 - JavaScript
-
Updated
Oct 29, 2019 - Java
-
Updated
Oct 17, 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
Oct 14, 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: