Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


To 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).


Thanks, sounds like your initial approach would be easier, a blocking API is fine for me. I'll look into it a little further.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: