macro_rules! emit_response {
( $headers:expr, $resource:expr => $T:ident, $timestamp:expr ) => { ... };
( $headers:expr, $resource:expr => $T:ident ) => { ... };
}Expand description
Given $resource of type $type that is serde Serializable and
$headers (an instance of a type that handles HTTP request headers)…
- compute the Resource’s
Etag, and instantiate bothEtagandLast-ModifiedHeaders, - evaluate the
If-Matchpre-conditions, - return a Response of the form
Result<WithResource<T>, Status>.