Crates.io | uri-builder |
lib.rs | uri-builder |
version | 0.1.0 |
source | src |
created_at | 2020-09-14 09:29:08.940962 |
updated_at | 2020-09-14 09:29:08.940962 |
description | Simple URI builder library |
homepage | |
repository | https://github.com/dikuchan/uri-builder |
max_upload_size | |
id | 288529 |
size | 8,508 |
Simple URI builder library. Provides setter fields according to the URI specification.
use uri_builder::URI;
let uri: String = URI::new("http")
.host("github")
.path_vec(vec!["dikuchan", "repos"].as_ref())
.query("page", 1)
.build();
The above example results in https://github.com/dikuchan/repos?page=1
.