1 stable release
1.0.1 | Jan 20, 2020 |
---|
#7 in #actori
102 downloads per month
Used in 11 crates
(2 directly)
1MB
20K
SLoC
Actori http client
An HTTP Client
Documentation & community resources
- User Guide
- API Documentation
- Chat on gitter
- Cargo package: actoriwc
- Minimum supported Rust version: 1.33 or later
Example
use actori_rt::System;
use actoriwc::Client;
use futures::future::{Future, lazy};
fn main() {
System::new("test").block_on(lazy(|| {
let mut client = Client::default();
client.get("http://www.rust-lang.org") // <- Create request builder
.header("User-Agent", "Actori-web")
.send() // <- Send http request
.and_then(|response| { // <- server http response
println!("Response: {:?}", response);
Ok(())
})
}));
}
Dependencies
~29MB
~618K SLoC