Downloader.cc
Go to the documentation of this file.
71 Downloader::Downloader(const SBuf &url, const AsyncCallback<Answer> &cb, const MasterXactionPointer &mx, const unsigned int level):
192 Downloader::handleReply(clientStreamNode * node, ClientHttpRequest *http, HttpReply *reply, StoreIOBuffer receivedData)
194 DownloaderContext::Pointer callerContext = dynamic_cast<DownloaderContext *>(node->data.getRaw());
Definition: parse.c:104
Definition: AsyncJob.h:31
static HttpRequest * FromUrl(const SBuf &url, const MasterXaction::Pointer &, const HttpRequestMethod &method=Http::METHOD_GET)
Definition: HttpRequest.cc:517
clientStream_status_t clientStreamStatus(clientStreamNode *thisObject, ClientHttpRequest *http)
Definition: clientStream.cc:257
struct StoreIOBuffer::@130 flags
void initRequest(HttpRequest *)
Definition: client_side_request.cc:1511
Definition: Downloader.cc:25
void clientStreamRead(clientStreamNode *thisObject, ClientHttpRequest *http, StoreIOBuffer readBuffer)
Definition: clientStream.cc:170
Downloader(const SBuf &url, const AsyncCallback< Answer > &, const MasterXactionPointer &, unsigned int level=0)
Definition: Downloader.cc:71
a smart AsyncCall pointer for delivery of future results
Definition: AsyncCallbacks.h:31
struct ClientHttpRequest::Out out
static const size_type maxSize
Maximum size of a SBuf. By design it MUST be < MAX(size_type)/2. Currently 256Mb.
Definition: SBuf.h:103
void clientStreamDetach(clientStreamNode *thisObject, ClientHttpRequest *http)
Definition: clientStream.cc:192
Definition: clientStream.h:75
Definition: StoreIOBuffer.h:15
Definition: client_side_request.h:30
Definition: RequestMethod.h:26
#define CallJobHere(debugSection, debugLevel, job, Class, method)
Definition: AsyncJobCalls.h:59
static void downloaderDetach(clientStreamNode *node, ClientHttpRequest *http)
Definition: Downloader.cc:128
Definition: Downloader.h:45
void handleReply(clientStreamNode *, ClientHttpRequest *, HttpReply *, StoreIOBuffer)
Definition: Downloader.cc:192
uint64_t size
Response header and body bytes written to the client connection.
Definition: client_side_request.h:153
std::ostream & operator<<(std::ostream &os, const DownloaderAnswer &answer)
Definition: Downloader.cc:63
Definition: client_side_reply.h:22
void clientStreamInit(dlink_list *list, CSR *func, CSD *rdetach, CSS *readstatus, const ClientStreamData &readdata, CSCB *callback, CSD *cdetach, const ClientStreamData &callbackdata, StoreIOBuffer tailBuffer)
Definition: clientStream.cc:112
Definition: HttpReply.h:24
static void downloaderRecipient(clientStreamNode *node, ClientHttpRequest *http, HttpReply *rep, StoreIOBuffer receivedData)
Definition: Downloader.cc:106
Definition: ClientRequestContext.h:28
bool buildRequest()
Initializes and starts the HTTP GET request to the remote server.
Definition: Downloader.cc:136
size_t req_sz
raw request size on input, not current request size
Definition: client_side_request.h:159
DownloaderContextPointer context_
Pointer to an object that stores the clientStream required info.
Definition: Downloader.h:87
MEMPROXY_CLASS(DownloaderContext)
ClientRequestContext * calloutContext
Definition: client_side_request.h:176
DownloaderContext(Downloader *dl, ClientHttpRequest *h)
Definition: Downloader.cc:41
AnyP::ProtocolVersion ProtocolVersion(unsigned int aMajor, unsigned int aMinor)
HTTP version label information.
Definition: ProtocolVersion.h:19
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products