Enum http_cache_semantics::BeforeRequest [−][src]
Expand description
Next action suggested after before_request()
Variants
Fresh(Parts)
Tuple Fields
0: PartsGood news! You can use it with body from the cache. No need to contact the server.
Stale
Fields
request: PartsSend this request to the server (it has added revalidation headers when appropriate)
matches: boolIf false, request was for some other resource that isn’t
semantically the same as previously cached request+response
You must send the request to the server first.
Implementations
For backwards compatibility only.
Don’t forget to use request headers from BeforeRequest::Fresh
