#http-request #http #native #web-native #wasm #request #web

reqwest-cross

Wrapper around reqwest for use in both native and wasm

14 releases (4 breaking)

new 0.6.2 Jan 17, 2025
0.5.1 Jan 15, 2025
0.4.2 Jul 24, 2024
0.2.3 Sep 4, 2023
0.2.2 Jul 19, 2023

#151 in HTTP client

Download history 27/week @ 2024-09-27 19/week @ 2024-10-04 6/week @ 2024-10-11 1/week @ 2024-11-15 1/week @ 2024-11-22 43/week @ 2024-12-06 51/week @ 2024-12-13 36/week @ 2024-12-20 20/week @ 2024-12-27 178/week @ 2025-01-03 112/week @ 2025-01-10

350 downloads per month

MIT/Apache

39KB
541 lines

reqwest-cross

Wrapper around reqwest for ease of use in applications that target BOTH native and wasm but do not want to block in the calling task (eg. A UI thread). Inspired by ehttp but uses reqwest instead. Doesn't provide much value if you're only targeting one or the other because request does that pretty well, see their wasm example.

License

All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both as noted in this issue on Bevy's repo.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~5–20MB
~299K SLoC