Skip to main content

conditional

Function conditional 

Source
pub fn conditional(etag: &str, if_none_match: &IfNoneMatch) -> Option<Response>
Expand description

Returns Some(304 Not Modified) if etag matches the client’s If-None-Match value. Returns None otherwise, signalling the caller should send the full response.