#cookie #cookies #rfc6265

basic-cookies

Low-level RFC 6265 combatible cookie handling library for Rust

5 releases

0.1.4 Sep 30, 2020
0.1.3 Jan 26, 2019
0.1.2 Nov 21, 2018
0.1.1 Oct 12, 2018
0.1.0 Oct 12, 2018

#238 in Network programming

Download history 4869/week @ 2021-10-06 6265/week @ 2021-10-13 5717/week @ 2021-10-20 6695/week @ 2021-10-27 7968/week @ 2021-11-03 7686/week @ 2021-11-10 8327/week @ 2021-11-17 7138/week @ 2021-11-24 5332/week @ 2021-12-01 5925/week @ 2021-12-08 5449/week @ 2021-12-15 3111/week @ 2021-12-22 3980/week @ 2021-12-29 5647/week @ 2022-01-05 5391/week @ 2022-01-12 4903/week @ 2022-01-19

20,363 downloads per month
Used in 18 crates (2 directly)

MIT license

33KB
846 lines

basic-cookies

Low-level RFC 6265 compatible cookie handling library for Rust.

Build Status Docs crates.io MIT licensed

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

~1–1.7MB
~48K SLoC