Page Speed Optimization Libraries  1.7.30.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::HttpDumpUrlAsyncWriter Class Reference

#include "http_dump_url_async_writer.h"

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

List of all members.

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.

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

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 [inline, virtual]

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines