fetchival
fetchival copied to clipboard
Easy window.fetch requests
I think the file object is losing when calling fetchival so the file will be post as string instead of file
- setting Content-Type:'application/json' is confusing when there is no body in the request According to W3: > The purpose of the Content-Type field is to describe the data contained in...
Defaults currently uses the following logic to extend the options object: ``` js function defaults (target, obj) { for (var prop in obj) target[prop] = target[prop] || obj[prop] } ```...
Is there any support in fetchival for timeout handling? I'm using it on an esp8266 and as a small device that is battery operated it may die at any point...
How to get `json` body from a code 400 server response? I can see only the `body: PassThrough { ... }` stream. Aren't chunks collected and json parsed?
Basically, I added a TS declaration and reduced the minzip size from 629B to 582B (-7.5%) and the min-brotli size from 524B to 487B (-7.1%). I intentionally did not modernize...
Are you planing any ts support on fluent api? Kind regards
Need support in posting data as FormData
This adds support for other values in 'Content-Type' header
Is there a way how to get every time information on response status and headers? Not just when status is different from 200. Would be cool feature.