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

Download history 60088/week @ 2024-07-29 69171/week @ 2024-08-05 62401/week @ 2024-08-12 73376/week @ 2024-08-19 71263/week @ 2024-08-26 65957/week @ 2024-09-02 69627/week @ 2024-09-09 58043/week @ 2024-09-16 72898/week @ 2024-09-23 72713/week @ 2024-09-30 86453/week @ 2024-10-07 76626/week @ 2024-10-14 77474/week @ 2024-10-21 71485/week @ 2024-10-28 77871/week @ 2024-11-04 73558/week @ 2024-11-11

302,808 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.1–4.5MB
~72K SLoC