deboa-tokio 0.1.0-beta.6

A friendly rest client on top of hyper.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::sync::Arc;

use url::Url;

use crate::{Client, Result};

#[tokio::test]
async fn test_shl() -> Result<()> {
    let client = Client::default();
    let request = &client << "https://httpbin.org/get";

    assert_eq!(request.url(), Arc::new(Url::parse("https://httpbin.org/get").unwrap()));

    Ok(())
}