19 #ifndef NET_INSTAWEB_HTTP_PUBLIC_HTTP_DUMP_URL_FETCHER_H_
20 #define NET_INSTAWEB_HTTP_PUBLIC_HTTP_DUMP_URL_FETCHER_H_
29 namespace net_instaweb {
34 class ResponseHeaders;
class GoogleUrl
Definition: google_url.h:58
Definition: http_dump_url_fetcher.h:45
bool ParseFile(FileSystem::InputFile *file, ResponseHeaders *response_headers, Writer *response_writer, MessageHandler *handler)
virtual void Fetch(const GoogleString &url, MessageHandler *message_handler, AsyncFetch *fetch)
This is a synchronous/blocking implementation.
void set_print_urls(bool on)
Print URLs each time they are fetched.
bool GetFilename(const GoogleUrl &url, GoogleString *filename, MessageHandler *message_handler)
Non-static version that uses the fetcher's root dir.
Definition: http_dump_url_fetcher.h:66
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: async_fetch.h:53
Definition: file_system.h:76
Interface for writing bytes to an output stream.
Definition: writer.h:29
static const char kGzipContentLengthAttribute[]
Definition: http_dump_url_fetcher.h:52
void RespondError(ResponseHeaders *response_headers, Writer *response_writer, MessageHandler *handler)
Helper function to return a generic error response.
static bool GetFilenameFromUrl(const StringPiece &root_dir, const GoogleUrl &url, GoogleString *filename, MessageHandler *message_handler)
Definition: message_handler.h:39
Timer interface, made virtual so it can be mocked for tests.
Definition: timer.h:27
Definition: url_async_fetcher.h:33