url-builder 0.1.1

A simple URL Builder
Documentation
  • Coverage
  • 66.67%
    8 out of 12 items documented3 out of 12 items with examples
  • Size
  • Source code size: 8.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.41 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Evalir/url-builder-rs
    7 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Evalir

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());