|
| FallbackSharedAsyncFetch (AsyncFetch *base_fetch, HTTPValue *fallback, MessageHandler *handler) |
|
void | set_fallback_responses_served (Variable *x) |
|
bool | serving_fallback () const |
|
| SharedAsyncFetch (AsyncFetch *base_fetch) |
|
virtual const RequestContextPtr & | request_context () |
|
| AsyncFetch (const RequestContextPtr &request_ctx) |
|
void | HeadersComplete () |
|
void | Done (bool success) |
|
virtual bool | Write (const StringPiece &content, MessageHandler *handler) |
|
virtual bool | Flush (MessageHandler *handler) |
|
RequestHeaders * | request_headers () |
|
void | set_request_headers (RequestHeaders *headers) |
|
void | SetRequestHeadersTakingOwnership (RequestHeaders *headers) |
| Same as above, but takes ownership.
|
|
const RequestHeaders * | request_headers () const |
|
ResponseHeaders * | response_headers () |
| See doc for request_headers and set_request_headers.
|
|
void | set_response_headers (ResponseHeaders *headers) |
|
ResponseHeaders * | extra_response_headers () |
|
void | set_extra_response_headers (ResponseHeaders *headers) |
|
virtual void | Reset () |
|
bool | headers_complete () const |
|
bool | content_length_known () const |
|
int64 | content_length () const |
|
void | set_content_length (int64 x) |
|
GoogleString | LoggingString () |
|
virtual AbstractLogRecord * | log_record () |
|
Creates a SharedAsyncFetch object using an existing AsyncFetch and a fallback value that is used in case the fetched response is an error. Note that in case the fetched response is an error and we have a non-empty fallback value, we completely ignore the fetched response. Also, note that this class gets deleted when HandleDone is called.