grillon 0.3.0

Grillon offers an elegant and natural way to approach end-to-end HTTP API testing in Rust.
Documentation
1
2
3
4
5
6
7
8
use crate::error::Result;
use http::uri::Uri;

pub fn concat(base: &Uri, path: &str) -> Result<Uri> {
    format!("{}{}", base, path)
        .parse::<Uri>()
        .map_err(|err| err.into())
}