http_type/cookie/type.rs
1use crate::*;
2
3/// The raw cookie string from the HTTP request header.
4pub type CookieString = String;
5/// Key type used in the request cookies.
6pub type CookieKey = String;
7/// Value type used in the request cookies.
8pub type CookieValue = String;
9/// Optional value for a cookie.
10pub type OptionCookiesValue = Option<CookieValue>;
11/// Optional expiration date string for a cookie.
12pub type OptionCookieExpires = Option<String>;
13/// Optional maximum age in seconds for a cookie.
14pub type OptionCookieMaxAge = Option<i64>;
15/// Optional domain for a cookie.
16pub type OptionCookieDomain = Option<String>;
17/// Optional path for a cookie.
18pub type OptionCookiePath = Option<String>;
19/// Optional SameSite policy for a cookie.
20pub type OptionCookieSameSite = Option<String>;
21// A collection of cookies.
22pub type Cookies = HashMapXxHash3_64<CookieKey, CookieValue>;