Skip to main content

cookie_header

Function cookie_header 

Source
pub fn cookie_header(
    name: &str,
    value: &str,
    max_age: Option<f64>,
    config: &AuthConfig,
) -> AuthResult<String>
Expand description

Render a cache-related cookie using the source numeric Max-Age policy.

Negative and NaN ages omit Max-Age; nonnegative ages are floored, and values above the cookie serializer’s 400-day ceiling fail rather than saturating. No Expires attribute is synthesized.