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 bothEtag
andLast-Modified
Headers, - evaluate the
If-Match
pre-conditions, - return a Response of the form
Result<WithResource<T>, Status>
.