3 ms·
I think I've seen you mention this before here, and it led me to writing a note about this topic in some documentation at work. So, thanks for the heads-up. Do
by jamil7 3y ago
I think I've seen you mention this before here, and it led me to writing a note about this topic in some documentation at work. So, thanks for the heads-up. Do you have any idea what would be required to write a URLSession backend for ureq/reqwest?
- Klonoar 3y agoTo be honest I've not looked into how tricky it would be - if anything I went the opposite route of experimenting with a reqwest-API-compatible wrapper for URLSession but didn't get too far due to other projects taking up my time. It might be the easier path though - one crate that basically uses a `reqwest`, `ureq` or `URLSession` backend since the former two would still work on Android to start. For reqwest specifically I guess it would also depend on how badly you want `async` support or not (i.e just the blocking module API).
- jamil7 3y agoThanks, sounds like your initial approach would be easier, a blocking API is fine for me. I'll look into it a little further.