Page Speed Optimization Libraries  1.8.31.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes | Protected Member Functions
net_instaweb::FallbackSharedAsyncFetch Class Reference

#include "async_fetch.h"

Inheritance diagram for net_instaweb::FallbackSharedAsyncFetch:
net_instaweb::SharedAsyncFetch net_instaweb::AsyncFetch

List of all members.

Public Member Functions

 FallbackSharedAsyncFetch (AsyncFetch *base_fetch, HTTPValue *fallback, MessageHandler *handler)
void set_fallback_responses_served (Variable *x)
bool serving_fallback () const

Static Public Attributes

static const char kStaleWarningHeaderValue []
 Warning header to be added if a stale response is served.

Protected Member Functions

virtual void HandleDone (bool success)
virtual bool HandleWrite (const StringPiece &content, MessageHandler *handler)
virtual bool HandleFlush (MessageHandler *handler)
virtual void HandleHeadersComplete ()

Detailed Description

Creates a SharedAsyncFetch object using an existing AsyncFetch and a fallback value that is used in case the fetched response is an error. Note that in case the fetched response is an error and we have a non-empty fallback value, we completely ignore the fetched response. Also, note that this class gets deleted when HandleDone is called.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines