uri-pct

Crates.iouri-pct
lib.rsuri-pct
version0.1.1
sourcesrc
created_at2021-05-10 17:12:51.229891
updated_at2021-05-10 20:07:23.399855
descriptionPercent encode/decode uri components or strs
homepage
repositoryhttps://github.com/tony-o/rust-uri-pct
max_upload_size
id395700
size3,372
tony-o (tony-o)

documentation

README

Percent Encoding str

This package provides a functional interface for encoding/decoding strs. It does its best to decode malformed strings (such as "%2%20%" => " ").

usage

use uri-pct;

let x = uri-pct::encode("hello world!");
// x = "hello%20world%21"
let y = uri-pct::decode(x);
// y = "hello world!"
Commit count: 4

cargo fmt