Closed celaus closed 3 years ago
WASM compatibility actually didn't need a special code section, reqwest has that built in :)
Quick explanation:
I tried to minimize any code duplication, but unless we use macros to define the functions there will be some duplication. However, I tried to externalize most things (e.g. the URL paths, the send function) so the actual sync/async implementations are effectively only putting together the URL. Fortunately, reqwest comes with a blocking feature as well, so we can rely on this and don't have to mess with threadpools and executors 😄
Looks great!
Too much had changed 😄
supersedes & closes PR #2