Rtv is a simple, minimal dependency, HTTP client that runs ontop of mio
only.
It supports fully nonblocking requests, even dns resolution is nonblocking.
You can either setup mio
youself and then use a Client
to make requests using your Poll
or alternatively you can use a SimpleClient
if don't need that much flexibility.
It is really simple to make a single request using a SimpleClient
.
This is not the only functionality that SimpleClient
provides though!
rust
let mut client = SimpleClient::new()?;
let request = Request::get().host("google.com");
client.send(request)?;
This crate is similar to mio_httpc, however
the API is much more clean. (In my opinion)
Rtv supports only a subset of mio_httpc
's features though and is probably not as efficient
and stable. Rtv really is a simple HTTP client.
Earlier versions of this crate were completely different.
I decided to repurpose the name because I don't wanna litter my profile or crates.io
.
- First rtv
was a crate for doing recursive-file-traversal
- Then it was a crate for resolving futures (completely useless)