deboa-compio 0.1.1

A friendly rest client on top of hyper.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use deboa::Result;
use http::Uri;

use crate::Client;

#[compio::test]
async fn test_shl() -> Result<()> {
    let client = Client::default();
    let builder = &client << "https://httpbin.org/get";
    let request = builder.build()?;
    assert_eq!(*request.uri(), Uri::from_static("https://httpbin.org/get"));

    Ok(())
}