Outgoing reduce response body middleware with condition headers for the Tide server framework.
#[async_std::main]
async fn main() -> tide::Result {
let mut app = tide::new();
app.with(tide_condition::ConditionMiddleware::new());
}
- Support for comparing ETag with If-None-Match values
- if
If-None-Match
value matches with content entity tags, It only returns 304 response.
- if
- Sets the
ETag
headers.- ETag is md5 digest of requested contents.