cookie-monster 0.2.2

A Cookie library for managing HTTP Cookies, with Axum integration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use cookie_monster::Cookie;

use crate::assert_eq_parse_enc;

#[test]
fn encoded() {
    assert_eq_parse_enc!("foo=bar%00", Ok(Cookie::new("foo", "bar\0")));

    assert_eq_parse_enc!(
        "foo%20!%%3F%3D=bar%3B%3B%2C%20a",
        Ok(Cookie::new("foo !%?=", "bar;;, a"))
    );
}