deboa-tokio 0.1.0

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

#[tokio::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(())
}