You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reqwest and gloo-net are both HTTP request libraries with support for WebAssembly.
It would be helpful to have documentation describing when gloo-net is an appropriate choice over reqwest. I mention reqwest because of its massive popularity, sitting at 39 million downloads compared to 231 thousand downloads for gloo-net at the time of writing.
Some things I can think of:
gloo-net is a smaller dependency, reqwest has a larger feature set
gloo-net has json() built-in; reqwest has it behind the optional json feature
reqwest requires creating a client to set headers; this is easier to do in gloo-net
gloo-net supports WebSocket
Admittedly, I don't know what the intention of gloo-net is. My guess a request library suitable for use in Wasm-based web apps? Maybe some of the contributors could chime in.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
reqwest and gloo-net are both HTTP request libraries with support for WebAssembly.
It would be helpful to have documentation describing when gloo-net is an appropriate choice over reqwest. I mention reqwest because of its massive popularity, sitting at 39 million downloads compared to 231 thousand downloads for gloo-net at the time of writing.
Some things I can think of:
json()
built-in; reqwest has it behind the optionaljson
featureAdmittedly, I don't know what the intention of gloo-net is. My guess a request library suitable for use in Wasm-based web apps? Maybe some of the contributors could chime in.
Thanks for the making this project!
Beta Was this translation helpful? Give feedback.
All reactions