Merge pull request #94 from sify21/use-cookie-time-unit

time unit of cookie's max-age is actually millisecond
This commit is contained in:
Marc-Stefan Cassola 2024-03-19 14:40:10 +00:00 committed by GitHub
commit e9add5ada4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -373,7 +373,7 @@ where
/// Options for [`use_cookie_with_options`]. /// Options for [`use_cookie_with_options`].
#[derive(DefaultBuilder)] #[derive(DefaultBuilder)]
pub struct UseCookieOptions<T, Err> { pub struct UseCookieOptions<T, Err> {
/// [`Max-Age` of the cookie](https://tools.ietf.org/html/rfc6265#section-5.2.2) in seconds. The returned signal will turn to `None` after the max age is reached. /// [`Max-Age` of the cookie](https://tools.ietf.org/html/rfc6265#section-5.2.2) in milliseconds. The returned signal will turn to `None` after the max age is reached.
/// Default: `None` /// Default: `None`
/// ///
/// > The [cookie storage model specification](https://tools.ietf.org/html/rfc6265#section-5.3) states /// > The [cookie storage model specification](https://tools.ietf.org/html/rfc6265#section-5.3) states