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

#331 in Web programming

Download history 70360/week @ 2024-09-26 82319/week @ 2024-10-03 82371/week @ 2024-10-10 77327/week @ 2024-10-17 76776/week @ 2024-10-24 70382/week @ 2024-10-31 74362/week @ 2024-11-07 79261/week @ 2024-11-14 71197/week @ 2024-11-21 67652/week @ 2024-11-28 81262/week @ 2024-12-05 79822/week @ 2024-12-12 52856/week @ 2024-12-19 26441/week @ 2024-12-26 54776/week @ 2025-01-02 63631/week @ 2025-01-09

213,067 downloads per month
Used in 21 crates (3 directly)

MIT license

36KB
929 lines

basic-cookies

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

Build Status Docs 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

~2.2–4.5MB
~72K SLoC