We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb4ef13 commit be286d5Copy full SHA for be286d5
src/cache/cache_control/cache_directive.rs
@@ -45,7 +45,7 @@ pub enum CacheDirective {
45
46
impl CacheDirective {
47
/// Check whether this directive is valid in an HTTP request.
48
- pub fn is_req(&self) -> bool {
+ pub fn valid_in_req(&self) -> bool {
49
use CacheDirective::*;
50
matches!(self,
51
MaxAge(_) | MaxStale(_) | MinFresh(_) | NoCache | NoStore | NoTransform
0 commit comments