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

#include "http_dump_url_writer.h"

Inheritance diagram for net_instaweb::HttpDumpUrlWriter:
net_instaweb::UrlFetcher

List of all members.

Public Member Functions

 HttpDumpUrlWriter (const StringPiece &root_dir, UrlFetcher *base_fetcher, FileSystem *file_system, Timer *timer)
virtual bool StreamingFetchUrl (const GoogleString &url, const RequestHeaders &request_headers, ResponseHeaders *response_headers, Writer *response_writer, MessageHandler *message_handler, const RequestContextPtr &request_context)
 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.


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