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

#143 in Web programming

Download history 24087/week @ 2024-03-14 23663/week @ 2024-03-21 20321/week @ 2024-03-28 22781/week @ 2024-04-04 28051/week @ 2024-04-11 28706/week @ 2024-04-18 28920/week @ 2024-04-25 27121/week @ 2024-05-02 35193/week @ 2024-05-09 40993/week @ 2024-05-16 43266/week @ 2024-05-23 46748/week @ 2024-05-30 42868/week @ 2024-06-06 44577/week @ 2024-06-13 45853/week @ 2024-06-20 35590/week @ 2024-06-27

178,011 downloads per month
Used in 21 crates (3 directly)

MIT license

34KB
845 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
~73K SLoC