static FetchResponseStatus net_instaweb::HttpCacheFailure::ClassifyFailure |
( |
const ResponseHeaders & |
headers, |
|
|
StringPiece |
contents, |
|
|
bool |
physical_fetch_success, |
|
|
bool |
external_cacheable |
|
) |
| |
|
static |
Classify results of a fetch as success, or as particular kind of failure, based on fetch results (including headers and contents).
The "is this cacheable" bit is injected from external computation so this code doesn't have to worry about all the various knobs we have for overriding TTL.
- Parameters
-
external_cacheable | e.g. what Done() said |
static FetchResponseStatus net_instaweb::HttpCacheFailure::DecodeFailureCachingStatus |
( |
HttpStatus::Code |
code | ) |
|
|
static |
These two methods are used to convert between failure status classification and the magic status codes we use to remember such failures in HTTP cache.
The documentation for this class was generated from the following file: