deboa-smol 0.1.0

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

use crate::Client;

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