A handler which streams the returned data to a CachedFileStream. The cache file is only created if a 200 OK status is observed.

Synopsis

Declared in <llvm/HTTP/StreamedHTTPResponseHandler.h>

class StreamedHTTPResponseHandler
    : public HTTPResponseHandler

Base Classes

Name

Description

HTTPResponseHandler

Handler for state updates while an HTTPRequest is performed.

Member Functions

Name

Description

StreamedHTTPResponseHandler [constructor]

Construct a handler that streams response bodies via CreateStream.

~StreamedHTTPResponseHandler [destructor] [virtual]

Destroy the streamed HTTP response handler.

commit

Must be called exactly once after the writes have been completed but before the StreamedHTTPResponseHandler object is destroyed.

handleBodyChunk [virtual]

Processes an additional chunk of bytes of the HTTP response body.

Created with MrDocs