Skip to main content

with_etag

Function with_etag 

Source
pub fn with_etag(request: Request<Bytes>, etag: &str) -> Request<Bytes>
Expand description

A shortcut for adding If-None-Match: <etag> to a request, so a caller can do a conditional GET and recognise GithubResponse::not_modified.