Trait octorust::http_cache::HttpCache[][src]

pub trait HttpCache: HttpCacheClone + Debug {
    fn cache_response(
        &self,
        uri: &str,
        body: &[u8],
        etag: &[u8],
        next_link: &Option<String>
    ) -> Result<()>;
fn lookup_etag(&self, uri: &str) -> Result<String>;
fn lookup_body(&self, uri: &str) -> Result<String>;
fn lookup_next_link(&self, uri: &str) -> Result<Option<String>>; }
This is supported on crate feature httpcache only.
Expand description

Implements a cached response and looking up the etag and next link.

Required methods

Implementations

Implementors