url-builder

Crates.iourl-builder
lib.rsurl-builder
version0.1.1
sourcesrc
created_at2022-12-19 21:54:19.330247
updated_at2023-02-28 21:47:18.023336
descriptionA simple URL Builder
homepage
repositoryhttps://github.com/evalir/url-builder-rs
max_upload_size
id741707
size8,985
evalir (Evalir)

documentation

README

url-builder-rs

A simple URL builder with no dependencies, useful for a drop-in way to build URLs in a safe way no matter the protocol. See docs.rs.

Example

use url_builder::URLBuilder;

let mut ub = URLBuilder::new();
ub.set_protocol("http")
    .set_host("localhost")
    .set_port(8000)
    .add_param("first", "1")
    .add_param("second", "2")
    .add_param("third", "3");

println!("{}", ub.build());
Commit count: 8

cargo fmt