I used native fetch for the first time now, and I like it.
The Rust-style with response.ok instead of throwing is easier to handle/read.
Also, the timeout handling, JSON en/decoding is working out of the box.
If you do not need to support node versions which do not provide native fetch - go for fetch
I used native
fetchfor the first time now, and I like it.The Rust-style with
response.okinstead of throwing is easier to handle/read.Also, the timeout handling, JSON en/decoding is working out of the box.
If you do not need to support node versions which do not provide native fetch - go for fetch
Tks Sebastian for your kind opinion, if I have read a little about those advantages.