Page Speed Optimization Libraries
1.11.33.2
|
#include "iframe_fetcher.h"
Public Member Functions | |
IframeFetcher (const RewriteOptions *options, const UserAgentMatcher *matcher, UrlAsyncFetcher *proxy_fetcher) | |
virtual void | Fetch (const GoogleString &url, MessageHandler *message_handler, AsyncFetch *fetch) |
![]() | |
virtual bool | SupportsHttps () const |
virtual int64 | timeout_ms () |
virtual void | ShutDown () |
void | set_fetch_with_gzip (bool x) |
bool | fetch_with_gzip () const |
AsyncFetch * | EnableInflation (AsyncFetch *fetch) const |
Static Public Attributes | |
static const char | kIframeId [] |
Id of iframe element inserted by fetcher. | |
![]() | |
static const int64 | kUnspecifiedTimeout |
static const char | kStatisticsGroup [] |
Default statistics group name. | |
Additional Inherited Members | |
![]() | |
UrlAsyncFetcher () | |
Fakes a fetch of a URL by synthesizing HTML with an empty head and a body that consists solely of the URL as an iframe src.
|
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(sligocki): GoogleString -> GoogleUrl or at least StringPiece.
TODO(sligocki): Include the URL in the fetch, like the request headers.
Implements net_instaweb::UrlAsyncFetcher.