Crates.io | uri-pct |
lib.rs | uri-pct |
version | 0.1.1 |
source | src |
created_at | 2021-05-10 17:12:51.229891 |
updated_at | 2021-05-10 20:07:23.399855 |
description | Percent encode/decode uri components or strs |
homepage | |
repository | https://github.com/tony-o/rust-uri-pct |
max_upload_size | |
id | 395700 |
size | 3,372 |
This package provides a functional interface for encoding/decoding strs. It does its best to decode malformed strings (such as "%2%20%" => " "
).
use uri-pct;
let x = uri-pct::encode("hello world!");
// x = "hello%20world%21"
let y = uri-pct::decode(x);
// y = "hello world!"