net_instaweb::CountingUrlAsyncFetcher::CountingUrlAsyncFetcher |
( |
UrlAsyncFetcher * |
fetcher | ) |
|
|
inlineexplicit |
- Todo:
- TODO(hujie): We should pass in the mutex at all call-sites instead of creating a new mutex here.
virtual void net_instaweb::CountingUrlAsyncFetcher::Fetch |
( |
const GoogleString & |
url, |
|
|
MessageHandler * |
message_handler, |
|
|
AsyncFetch * |
fetch |
|
) |
| |
|
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:
TODO(sligocki): GoogleString -> GoogleUrl or at least StringPiece.
TODO(sligocki): Include the URL in the fetch, like the request headers.
Implements net_instaweb::UrlAsyncFetcher.
virtual bool net_instaweb::CountingUrlAsyncFetcher::SupportsHttps |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following file: