Expand description
ETag and conditional response helpers.
Provides an IfNoneMatch extractor for the If-None-Match request
header, a conditional helper that returns 304 when the ETag matches,
and a with_etag helper to attach an ETag header to a response.
Structs§
- IfNone
Match - Extractor for the
If-None-Matchrequest header.
Functions§
- conditional
- Returns
Some(304 Not Modified)ifetagmatches the client’sIf-None-Matchvalue. ReturnsNoneotherwise, signalling the caller should send the full response. - with_
etag - Attaches an
ETagheader to a response.