Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::HttpDumpUrlAsyncWriter Class Reference

#include "http_dump_url_async_writer.h"

Inheritance diagram for net_instaweb::HttpDumpUrlAsyncWriter:
net_instaweb::UrlAsyncFetcher

Public Member Functions

 HttpDumpUrlAsyncWriter (const StringPiece &root_dir, UrlAsyncFetcher *base_fetcher, FileSystem *file_system, Timer *timer)
 
virtual bool SupportsHttps () const
 
virtual void Fetch (const GoogleString &url, MessageHandler *handler, AsyncFetch *base_fetch)
 This is a synchronous/blocking implementation.
 
void set_accept_gzip (bool x)
 
void set_print_urls (bool on)
 Print URLs each time they are fetched.
 
- Public Member Functions inherited from net_instaweb::UrlAsyncFetcher
virtual int64 timeout_ms ()
 
virtual void ShutDown ()
 
void set_fetch_with_gzip (bool x)
 
bool fetch_with_gzip () const
 
AsyncFetchEnableInflation (AsyncFetch *fetch) const
 

Additional Inherited Members

- Static Public Attributes inherited from net_instaweb::UrlAsyncFetcher
static const int64 kUnspecifiedTimeout
 
- Protected Member Functions inherited from net_instaweb::UrlAsyncFetcher
 UrlAsyncFetcher ()
 

Detailed Description

HttpDumpWriter checks to see whether the HTTP dump is available on the filesystem. If not, it fetches it from another fetcher (e.g. one that uses the network) and writes it to the filesystem so that HttpDumpFetcher can find it.

Member Function Documentation

void net_instaweb::HttpDumpUrlAsyncWriter::set_accept_gzip ( bool  x)
inline

Controls whether we will request and save gzipped content to the file system. Note that http_dump_url_fetcher will inflate on read if its caller does not want gzipped output.

virtual bool net_instaweb::HttpDumpUrlAsyncWriter::SupportsHttps ( ) const
inlinevirtual

Determine if the fetcher supports fetching using HTTPS. By default we assume a fetcher can.

Reimplemented from net_instaweb::UrlAsyncFetcher.


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