3 releases

0.1.2 Feb 5, 2025
0.1.1 Feb 17, 2023
0.1.0 Feb 17, 2023

#1248 in Web programming

Download history 1/week @ 2024-10-29 1/week @ 2024-11-05 2/week @ 2024-12-10 142/week @ 2025-02-04 7/week @ 2025-02-11

149 downloads per month

MIT license

4KB

clia-url-qs

Utility methods for URL query string.

Member of clia-util.

Usage

from_tuple_array

let params = [("foo", "bar"), ("baz", "quux")];
assert_eq!(clia_url_qs::from_tuple_array(&params).unwrap(), "foo=bar&baz=quux");

from_hashmap

let mut params = HashMap::new();
params.insert("foo", "bar");
params.insert("baz", "quux");

let res = clia_url_qs::from_hashmap(&params).unwrap();

Dependencies

~300–600KB
~12K SLoC