Replies: 3 comments 3 replies
|
fetch handles compression. for request you have to implement it yourself. Also there are still some improvements for fetch in the pipeline. like caching. Stuff you would need to implement yourself in request. |
|
Is the error handling something that can be improved in the |
|
The overall recommendation we give is to use They way If you are really seeking for interoperability and dependency-less option, |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assuming the code will always (TM) be executed with node, never in browser or another js runtime. Should I use fetch or request?
I'm tending towards request, but fetch being bundled and the compatibility is tempting...
fetch
pro
contra
request
pro
contra
26 votes ·
All reactions