basic-cookies

Crates.iobasic-cookies
lib.rsbasic-cookies
version0.1.5
sourcesrc
created_at2018-10-12 03:17:26.81797
updated_at2024-01-09 05:35:14.415224
descriptionLow-level RFC 6265 combatible cookie handling library for Rust.
homepage
repositoryhttps://github.com/drjokepu/basic-cookies
max_upload_size
id89382
size37,058
Tamas Czinege (drjokepu)

documentation

https://docs.rs/basic-cookies

README

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());
Commit count: 22

cargo fmt