|
| FileInputResource (const RewriteDriver *driver, const ContentType *type, StringPiece url, StringPiece filename) |
|
virtual bool | IsValidAndCacheable () const |
|
virtual void | FillInPartitionInputInfo (HashHint include_content_hash, InputInfo *input) |
| Set OutputPartition's input info used for expiration validation.
|
|
virtual GoogleString | url () const |
| Gets the absolute URL of the resource.
|
|
virtual bool | UseHttpCache () const |
|
| Resource (const RewriteDriver *driver, const ContentType *type) |
|
ServerContext * | server_context () const |
| Common methods across all deriviations.
|
|
bool | is_authorized_domain () |
|
void | set_is_authorized_domain (bool is_authorized) |
|
bool | IsSafeToRewrite (bool rewrite_uncacheable, GoogleString *reason) const |
|
bool | IsSafeToRewrite (bool rewrite_uncacheable) const |
|
bool | loaded () const |
|
bool | HttpStatusOk () const |
|
void | LoadAsync (NotCacheablePolicy not_cacheable_policy, const RequestContextPtr &request_context, AsyncCallback *callback) |
|
virtual void | RefreshIfImminentlyExpiring () |
|
GoogleString | ContentsHash () const |
|
void | AddInputInfoToPartition (HashHint suggest_include_content_hash, int index, CachedResult *partition) |
|
void | FillInPartitionInputInfoFromResponseHeaders (const ResponseHeaders &headers, InputInfo *input) |
|
int64 | CacheExpirationTimeMs () const |
|
StringPiece | ExtractUncompressedContents () const |
|
size_t | UncompressedContentsSize () const |
|
StringPiece | raw_contents () const |
|
ResponseHeaders * | response_headers () |
|
const ResponseHeaders * | response_headers () const |
|
const ContentType * | type () const |
|
virtual void | SetType (const ContentType *type) |
|
bool | IsContentsEmpty () const |
|
StringPiece | charset () const |
| Note: this is empty if the header is not specified.
|
|
void | set_charset (StringPiece c) |
|
virtual bool | has_url () const |
|
virtual GoogleString | UrlForDebug () const |
| Override if resource does not have a URL.
|
|
virtual GoogleString | cache_key () const |
|
void | DetermineContentType () |
|
bool | Link (HTTPValue *source, MessageHandler *handler) |
|
virtual void | Freshen (FreshenCallback *callback, MessageHandler *handler) |
|
void | LinkFallbackValue (HTTPValue *value) |
| Links the stale fallback value that can be used in case a fetch fails.
|
|
void | set_is_background_fetch (bool x) |
|
bool | is_background_fetch () const |
|
FetchResponseStatus | fetch_response_status () |
|
void | set_fetch_response_status (FetchResponseStatus x) |
|
void | Release () |
|
void | AddRef () |
|
bool | HasOneRef () |
|
Load the resource asynchronously, storing ResponseHeaders and contents in object. Calls 'callback' when finished. The ResourcePtr used to construct 'callback' must be the same as the resource used to invoke this method.
Setting not_cacheable_policy to kLoadEvenIfNotCacheable will permit it to consider loading to be successful on Cache-Control:private and Cache-Control:no-cache resources. It should not affect /whether/ the callback gets involved, only whether it gets true or false.
Implements net_instaweb::Resource.