Skip to content

Commit be286d5

Browse files
authored
Update src/cache/cache_control/cache_directive.rs
1 parent eb4ef13 commit be286d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cache/cache_control/cache_directive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub enum CacheDirective {
4545

4646
impl CacheDirective {
4747
/// Check whether this directive is valid in an HTTP request.
48-
pub fn is_req(&self) -> bool {
48+
pub fn valid_in_req(&self) -> bool {
4949
use CacheDirective::*;
5050
matches!(self,
5151
MaxAge(_) | MaxStale(_) | MinFresh(_) | NoCache | NoStore | NoTransform

0 commit comments

Comments
 (0)