Page Speed Optimization Libraries
1.5.27.2
|
#include "async_fetch.h"
Public Member Functions | |
StringAsyncFetch (const RequestContextPtr &request_ctx) | |
StringAsyncFetch (const RequestContextPtr &request_ctx, GoogleString *buffer) | |
virtual bool | HandleWrite (const StringPiece &content, MessageHandler *handler) |
virtual bool | HandleFlush (MessageHandler *handler) |
virtual void | HandleHeadersComplete () |
virtual void | HandleDone (bool success) |
bool | success () const |
bool | done () const |
const GoogleString & | buffer () const |
virtual void | Reset () |
Protected Member Functions | |
void | set_success (bool success) |
void | set_done (bool done) |
Class to represent an Async fetch that collects the response-data into a string, which can be accessed via buffer() and cleared via Reset().
virtual void net_instaweb::StringAsyncFetch::Reset | ( | ) | [inline, virtual] |
Resets the 'headers_complete_' flag.
Reimplemented from net_instaweb::AsyncFetch.
void net_instaweb::StringAsyncFetch::set_success | ( | bool | success | ) | [inline, protected] |
For subclasses that need to use complex logic to set success_ and done_. Most subclasses should not need these.