-
Updated
Aug 29, 2021 - JavaScript
fetch
Here are 1,848 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 i
For 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
Aug 24, 2021 - TypeScript
- Let httpCache be the result of determining the HTTP cache partition, given httpRequest.
References httpRequest
. However, that variable is not defined in the context.
-
Updated
Mar 18, 2021 - Vue
-
Updated
Aug 21, 2021 - JavaScript
-
Updated
Aug 11, 2021 - JavaScript
-
Updated
Aug 19, 2020 - JavaScript
-
Updated
Aug 29, 2021 - JavaScript
-
Updated
Oct 29, 2019 - Java
-
Updated
Aug 10, 2021 - TypeScript
-
Updated
Aug 13, 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
Aug 11, 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."
We can use mark the properties of the SWR return state readonly, to avoid modifying them. For example it's dangerous to directly modify the
data
object, which could cause an infinite loop of rerender.