nightfly 0.1.6

higher level HTTP client library for the lunatic runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use lunatic::Mailbox;

// Short example of a POST request with form data.
//
//
#[lunatic::main]
fn main(_: Mailbox<()>) {
    let response = nightfly::Client::new()
        .post("http://www.baidu.com")
        .form(&[("one", "1")])
        .send()
        .expect("send");
    println!("Response status {}", response.status());
}