#http-request #request #http #native #web-native #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

#194 in HTTP client

Download history 201/week @ 2024-07-15 152/week @ 2024-07-22 10/week @ 2024-07-29 1/week @ 2024-09-02 39/week @ 2024-09-16 16/week @ 2024-09-23 30/week @ 2024-09-30 18/week @ 2024-10-07

103 downloads per month

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

~3–14MB
~191K SLoC