http-rs / http-types

Common types for HTTP operations
https://docs.rs/http-types
Apache License 2.0
200 stars 83 forks source link

Add `conditional::{IfMatch, IfNoneMatch}` #224

Closed yoshuawuyts closed 4 years ago

yoshuawuyts commented 4 years ago

Adds conditional::{IfMatch, IfNoneMatch}. Depends on #220 and #222. Ref #99.

This is the last one for the conditional submodule. Merging this will allow us to build high-level caching middleware for Tide. Probably the first step would be to integrate Etag and timestamp generation with the serve_dir method.

edit: I forgot about the Vary header. But other than that we should have all the conditionals already!

Screenshots

Screenshot_2020-08-08 http_types conditional - Rust(2)