StoreClient.h
Go to the documentation of this file.
int storeUnregister(store_client *sc, StoreEntry *e, void *data)
Definition: store_client.cc:749
int storeClientIsThisAClient(store_client *sc, void *someClient)
void storeClientCopy(store_client *, StoreEntry *, StoreIOBuffer, STCB *, void *)
Definition: store_client.cc:213
store_client * storeClientListAdd(StoreEntry *e, void *data)
Definition: store_client.cc:123
void error(char *format,...)
Definition: FilledChecklist.h:32
an interface for those capable of configuring an ACLFilledChecklist object
Definition: ChecklistFiller.h:19
Definition: DelayId.h:22
Definition: LogTags.h:67
Definition: MemBuf.h:24
bool onCollapsingPath() const
whether Squid configuration allows collapsing for this transaction
Definition: store_client.cc:52
virtual LogTags * loggingTags() const =0
bool mayInitiateCollapsing() const
whether Squid configuration allows us to become a CF initiator
Definition: StoreClient.h:58
bool startCollapsingOn(const StoreEntry &, const bool doingRevalidation) const
Definition: store_client.cc:66
Definition: Store.h:42
Definition: StoreIOBuffer.h:16
Definition: dlink.h:15
Definition: StoreClient.h:70
void readHeader(const char *buf, ssize_t len)
Definition: store_client.cc:711
void skipHttpHeadersFromDisk()
skips HTTP header bytes previously loaded from disk
Definition: store_client.cc:1029
void handleBodyFromDisk()
de-serializes HTTP response (partially) read from disk storage
Definition: store_client.cc:611
struct store_client::@140 flags
std::optional< Store::ParsingBuffer > parsingBuffer
Definition: StoreClient.h:187
bool startSwapin()
opens the swapin "file" if possible; otherwise, fail()s and returns false
Definition: store_client.cc:420
void noteNews()
if necessary and possible, informs the Store reader about copy() result
Definition: store_client.cc:671
bool parseHttpHeadersFromDisk()
Definition: store_client.cc:991
bool moreToRead() const
Whether Store has (or possibly will have) more entry data for us.
Definition: store_client.cc:294
void scheduleRead()
int64_t nextHttpReadOffset() const
The offset of the next stored HTTP response byte wanted by the client.
Definition: store_client.cc:492
void copy(StoreEntry *, StoreIOBuffer, STCB *, void *)
Definition: store_client.cc:224
void noteCopiedBytes(size_t)
void maybeWriteFromDiskToMemory(const StoreIOBuffer &)
Definition: store_client.cc:634
bool canReadFromMemory() const
whether at least one byte wanted by the client is in memory
Definition: store_client.cc:482
struct store_client::Callback _callback
void finishCallback()
finishes a copy()-STCB sequence by synchronously calling STCB
Definition: store_client.cc:153
static void FinishCallback(store_client *)
finishCallback() wrapper; TODO: Add NullaryMemFunT for non-jobs.
Definition: store_client.cc:146
void dumpStats(MemBuf *output, int clientNumber) const
Definition: store_client.cc:1045
void callback(ssize_t)
Definition: StoreClient.h:195
Callback()=default
AsyncCall::Pointer notifier
a scheduled asynchronous finishCallback() call (or nil)
Definition: StoreClient.h:210