pathetic

Crates.iopathetic
lib.rspathetic
version0.3.0
sourcesrc
created_at2020-03-06 22:20:51.45359
updated_at2020-03-18 19:39:22.625742
descriptionRelative URI library for Rust, based on the `url` crate
homepage
repositoryhttps://github.com/kardeiz/pathetic
max_upload_size
id216187
size9,048
Jacob Brown (kardeiz)

documentation

README

pathetic

Docs Crates.io

A library for working with relative URIs, based on the url crate.

Usage:

fn main() {
    let uri = pathetic::Uri::default()
        .with_path_segments_mut(|p| p.extend(&["foo", "bar"]))
        .with_query_pairs_mut(|q| q.append_pair("foo", "bar"))
        .with_fragment(Some("baz"));

    assert_eq!("/foo/bar?foo=bar#baz", uri.as_str());
}

Current version: 0.3.0

License: MIT

Commit count: 9

cargo fmt