9#ifndef SQUID_SRC_DOWNLOADER_H
10#define SQUID_SRC_DOWNLOADER_H
67 void start()
override;
RefCount< DownloaderContext > DownloaderContextPointer
std::ostream & operator<<(std::ostream &, const DownloaderAnswer &)
a smart AsyncCall pointer for delivery of future results
virtual const char * status() const
internal cleanup; do not call directly
void callBack(Http::StatusCode const status)
AsyncCallback< Answer > callback_
answer destination
void downloadFinished()
delays destruction to protect doCallouts()
bool doneAll() const override
whether positive goal has been reached
void start() override
called by AsyncStart; do not call directly
SBuf url_
the url to download
unsigned int nestedLevel() const
The nested level of Downloader object (downloads inside downloads).
const unsigned int level_
holds the nested downloads level
static const size_t MaxObjectSize
The maximum allowed object size.
DownloaderContextPointer context_
Pointer to an object that stores the clientStream required info.
MasterXactionPointer masterXaction_
download transaction context
bool buildRequest()
Initializes and starts the HTTP GET request to the remote server.
SBuf object_
the object body data
void handleReply(clientStreamNode *, ClientHttpRequest *, HttpReply *, StoreIOBuffer)