pub fn parse_cache_control_header(input: &str) -> Result<Duration> {
    let directives = parse_vec(input, cache_control::directive)?;
    cache_control::freshness_lifetime(directives)
        .ok_or_else(|| Error::msg("Freshness lifetime is implicit"))
}
// Returns the freshness lifetime for a shared cache.
Returns the freshness lifetime for a shared cache.
Returns the freshness lifetime for a shared cache .
pub fn parse_cache_control_header(input: &str) -> Result<Duration> {
    let directives = parse_vec(input, cache_control::directive)?;
    cache_control::freshness_lifetime(directives)
        .ok_or_else(|| Error::msg("Freshness lifetime is implicit"))
}
pub fn parse_cache_control_header ( input : & str ) -> Result < Duration > { let directives = parse_vec ( input , cache_control :: directive ) ? ; cache_control :: freshness_lifetime ( directives ) . ok_or_else ( | | Error :: msg ( " " ) ) }
Returns the freshness lifetime for a shared cache.
Returns the freshness lifetime for a shared cache .
input
&str
input
&str