compio-rs / compio

A thread-per-core Rust runtime with IOCP/io_uring/polling.
MIT License
420 stars 37 forks source link

feat: HTTP client #127

Closed Berrysoft closed 11 months ago

Berrysoft commented 1 year ago

This first PR adds a simple HTTP client with some found bug fixes.

Cookies support and compression are in the following PRs.

Berrysoft commented 11 months ago

This PR proposals two crate: compio-http and compio-http-client. The first one provides mid-level hyper services, for both client and server; the second one provides a reqwest-like high level HTTP client. This design provides possibility to author a web framework based on hyper, and most flexibility for users who wants to author their own client and server.