Skip to main content

parse_cache_policy

Function parse_cache_policy 

Source
pub fn parse_cache_policy(
    value: &str,
    axis: &'static str,
) -> Result<CachePolicy, RequestError>
Expand description

Parse a cache policy: auto, on, or off.

The three values that earlier releases also accepted are refused with the replacement, since each still appears in scripts and a bare list of values would not say where only went.