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

reqwest-cross

Wrapper around reqwest for use in both native and wasm

9 releases

0.4.2 Jul 24, 2024
0.4.1 Jul 17, 2024
0.3.1 Jun 13, 2024
0.3.0 Apr 17, 2024
0.2.1 Apr 27, 2023

#211 in HTTP client

MIT/Apache

21KB
84 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

~4–16MB
~207K SLoC