6 releases
0.1.5 | Jan 9, 2024 |
---|---|
0.1.4 | Sep 30, 2020 |
0.1.3 | Jan 26, 2019 |
0.1.2 | Nov 21, 2018 |
0.1.1 | Oct 12, 2018 |
#303 in Web programming
302,808 downloads per month
Used in 21 crates
(3 directly)
36KB
929 lines
basic-cookies
Low-level RFC 6265 compatible cookie handling library for Rust.
Usage Example
use basic_cookies::Cookie;
let parsed_cookies = Cookie::parse("cookie1=value1; cookie2=value2").unwrap();
assert_eq!("cookie1", parsed_cookies[0].get_name());
assert_eq!("value1", parsed_cookies[0].get_value());
assert_eq!("cookie2", parsed_cookies[1].get_name());
assert_eq!("value2", parsed_cookies[1].get_value());
Dependencies
~2.1–4.5MB
~72K SLoC