Expand description
§Trillium handlers for etag and last-modified-since headers.
This crate provides three handlers: Etag, Modified, and
CachingHeaders, as well as a CachingHeadersExt that extends
[trillium::Headers] with some accessors.
Unless you are sure that you don’t want either etag or last-modified
behavior, please use the combined CachingHeaders handler.
Structs§
- Cache
Control Header - A representation of the
Cache-Controlheader. - Caching
Headers - A combined handler that provides both
EtagandModifiedbehavior. - Entity
Tag - An entity tag, defined in RFC7232
- Etag
- Etag and If-None-Match header handler
- Modified
- A handler for the
Last-ModifiedandIf-Modified-Sinceheader interaction.
Enums§
- Cache
Control Directive - An enum representation of the
Cache-Controldirectives.
Traits§
- Caching
Headers Ext - Provides an extension trait for both [
trillium::Headers] and also [trillium::Conn] for setting and getting various parsed caching headers.
Functions§
- cache_
control - Construct a CacheControlHeader. Alias for
CacheControlHeader::new - caching_
headers - alias for
CachingHeaders::new