Page Speed Optimization Libraries
1.13.35.1
|
#include "proxy_interface.h"
Public Member Functions | |
ProxyInterface (StringPiece stats_prefix, StringPiece hostname, int port, ServerContext *server_context, Statistics *stats) | |
virtual void | Fetch (const GoogleString &requested_url, MessageHandler *handler, AsyncFetch *async_fetch) |
bool | IsWellFormedUrl (const GoogleUrl &url) |
Is this url_string well-formed enough to proxy through? | |
virtual ProxyFetchPropertyCallbackCollector * | InitiatePropertyCacheLookup (bool is_resource_fetch, const GoogleUrl &request_url, RewriteOptions *options, AsyncFetch *async_fetch) |
Initiates the PropertyCache look up. | |
Public Member Functions inherited from net_instaweb::UrlAsyncFetcher | |
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 Member Functions | |
static void | InitStats (StringPiece stats_prefix, Statistics *statistics) |
Initializes statistics variables associated with this class. | |
Static Public Attributes | |
static const char | kCacheHtmlRequestCount [] |
Static Public Attributes inherited from net_instaweb::UrlAsyncFetcher | |
static const int64 | kUnspecifiedTimeout |
Protected Attributes | |
ServerContext * | server_context_ |
Needed by subclasses when overriding InitiatePropertyCacheLookup. More... | |
Friends | |
class | ProxyInterfaceTest |
Additional Inherited Members | |
Protected Member Functions inherited from net_instaweb::UrlAsyncFetcher | |
UrlAsyncFetcher () | |
|
virtual |
All requests use this interface. We decide internally whether the request is a pagespeed resource, HTML page to be rewritten or another resource to be proxied directly.
Implements net_instaweb::UrlAsyncFetcher.
|
protected |
Needed by subclasses when overriding InitiatePropertyCacheLookup.
thread-safe, unowned