time unit of cookie's max-age is actually millisecond

Signed-off-by: 司芳源 <sify21@163.com>
This commit is contained in:
司芳源 2024-03-19 20:49:30 +08:00
parent 6d054cfe5a
commit 1a4683eb73

View file

@ -373,7 +373,7 @@ where
/// Options for [`use_cookie_with_options`].
#[derive(DefaultBuilder)]
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`
///
/// > The [cookie storage model specification](https://tools.ietf.org/html/rfc6265#section-5.3) states