MCPcopy Create free account
hub / github.com/06chaynes/http-cache / overridden_cache_mode

Method overridden_cache_mode

http-cache/src/lib.rs:1093–1095  ·  view source on GitHub ↗

Allows the cache mode to be overridden. This overrides any cache mode set in the configuration, including cache_mode_fn.

(&self)

Source from the content-addressed store, hash-verified

1091 &self,
1092 cache_key: &str,
1093 ) -> impl Future<Output = Result<()>> + Send;
1094
1095 /// Creates an empty body of the manager's body type.
1096 /// Used for returning 504 Gateway Timeout responses on OnlyIfCached cache misses.
1097 fn empty_body(&self) -> Self::Body;
1098

Callers 3

can_cache_requestMethod · 0.45
runMethod · 0.45
cache_modeMethod · 0.45

Implementers 4

lib.rshttp-cache-tower/src/lib.rs
lib.rshttp-cache-reqwest/src/lib.rs
lib.rshttp-cache-surf/src/lib.rs
lib.rshttp-cache-ureq/src/lib.rs

Calls

no outgoing calls

Tested by

no test coverage detected