Page Speed Optimization Libraries  1.9.32.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Friends | List of all members
net_instaweb::ModSpdyFetcher Class Reference
Inheritance diagram for net_instaweb::ModSpdyFetcher:
net_instaweb::UrlAsyncFetcher

Public Member Functions

 ModSpdyFetcher (ModSpdyFetchController *controller, StringPiece url, RewriteDriver *driver, spdy_slave_connection_factory *connection_factory)
 
virtual void Fetch (const GoogleString &url, MessageHandler *message_handler, AsyncFetch *fetch)
 
- Public Member Functions inherited from net_instaweb::UrlAsyncFetcher
virtual bool SupportsHttps () const
 
virtual int64 timeout_ms ()
 
virtual void ShutDown ()
 
void set_fetch_with_gzip (bool x)
 
bool fetch_with_gzip () const
 
AsyncFetchEnableInflation (AsyncFetch *fetch) const
 

Static Public Member Functions

static void Initialize ()
 
static void InitStats (Statistics *statistics)
 This must be called for every statistics object in use before using this.
 
static bool ShouldUseOn (request_rec *req)
 

Friends

class ModSpdyFetchController
 

Additional Inherited Members

- Static Public Attributes inherited from net_instaweb::UrlAsyncFetcher
static const int64 kUnspecifiedTimeout
 
static const char kStatisticsGroup []
 Default statistics group name.
 
- Protected Member Functions inherited from net_instaweb::UrlAsyncFetcher
 UrlAsyncFetcher ()
 

Member Function Documentation

virtual void net_instaweb::ModSpdyFetcher::Fetch ( const GoogleString &  url,
MessageHandler *  message_handler,
AsyncFetch fetch 
)
virtual

Asynchronously fetch a URL, set the response headers and stream the contents to fetch and call fetch->Done() when the fetch finishes.

There is an unchecked contract that response_headers are set before the response_writer or callback are used. Caution, several implementations do not satisfy this contract (but should).

Todo:

TODO(sligocki): GoogleString -> GoogleUrl or at least StringPiece.

TODO(sligocki): Include the URL in the fetch, like the request headers.

Implements net_instaweb::UrlAsyncFetcher.

static void net_instaweb::ModSpdyFetcher::Initialize ( )
static

Initializes various filters this fetcher needs for operation. This must be from within a register hooks implementation.

static bool net_instaweb::ModSpdyFetcher::ShouldUseOn ( request_rec *  req)
static

Returns true if a ModSpdyFetcher should be installed as a session fetcher on a given connection.

Friends And Related Function Documentation

friend class ModSpdyFetchController
friend
Todo:
TODO(morlovich): Implement virtual void ShutDown(), and give a good story on session fetchers and fetcher shutdowns in general.

The documentation for this class was generated from the following file: