Trait dot4ch::IfModifiedSince
source · [−]pub trait IfModifiedSince {
fn fetch<'life0, 'life1, 'life2, 'async_trait>(
client: &'life0 Arc<Mutex<Client>>,
url: &'life1 str,
header: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Response, DotError>> + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
Helper trait that sends a GET request from the reqwest client with a If-Modified-Since header.
Required Methods
Fetches the given URL with an If-Modifed-Since
header.