client_side_reply.h
Go to the documentation of this file.
45 void setReplyToError(err_type, Http::StatusCode, char const *, const ConnStateData *, HttpRequest *, const char *,
63 const char *storeId() const { return (http->store_id.size() > 0 ? http->store_id.termedBuf() : http->uri); }
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
Definition: FilledChecklist.h:32
Definition: Acl.h:128
Definition: client_side_request.h:38
Definition: client_side.h:84
Definition: errorpage.h:89
Definition: HttpReply.h:25
Definition: RequestMethod.h:27
Definition: HttpRequest.h:49
Definition: LogTags.h:67
Definition: RequestFlags.h:23
Definition: Store.h:42
Definition: StoreIOBuffer.h:16
Definition: SquidString.h:26
Definition: client_side_reply.h:23
void handleIMSReply(StoreIOBuffer result)
Definition: client_side_reply.cc:404
void sendNotModifiedOrPreconditionFailedError()
Definition: client_side_reply.cc:1815
void setReplyToReply(HttpReply *reply)
creates a store entry for the reply and appends error reply to it
Definition: client_side_reply.cc:134
static ACLCB ProcessReplyAccessResult
Definition: client_side_reply.h:101
bool alwaysAllowResponse(Http::StatusCode sline) const
Definition: client_side_reply.cc:1178
void sendPreconditionFailedError()
send 412 (Precondition Failed) to client
Definition: client_side_reply.cc:1771
void triggerInitialStoreRead(STCB=SendMoreData)
Definition: client_side_reply.cc:238
bool matchesStreamBodyBuffer(const StoreIOBuffer &) const
Definition: client_side_reply.cc:2049
void sendStreamError(StoreIOBuffer const &result)
Definition: client_side_reply.cc:1721
void pushStreamData(const StoreIOBuffer &)
Definition: client_side_reply.cc:1738
void sendClientUpstreamResponse(const StoreIOBuffer &upstreamResponse)
Definition: client_side_reply.cc:367
void identifyFoundObject(StoreEntry *entry, const char *detail)
Definition: client_side_reply.cc:1506
void createStoreEntry(const HttpRequestMethod &m, RequestFlags flags)
Definition: client_side_reply.cc:2081
void setReplyToStoreEntry(StoreEntry *e, const char *reason)
replaces current response store entry with the given one
Definition: client_side_reply.cc:153
bool errorInStream(const StoreIOBuffer &result) const
Definition: client_side_reply.cc:1713
void processOnlyIfCachedMiss()
Definition: client_side_reply.cc:772
bool blockedHit() const
whether squid.conf send_hit prevents us from serving this hit
Definition: client_side_reply.cc:838
static decltype(::storeClientCopy) storeClientCopy
Definition: client_side_reply.h:137
int storeNotOKTransferDone() const
Definition: client_side_reply.cc:1056
void removeClientStoreReference(store_client **scp, ClientHttpRequest *http)
Definition: client_side_reply.cc:182
friend CSR clientGetMoreData
Definition: client_side_reply.h:164
~clientReplyContext() override
Definition: client_side_reply.cc:60
struct clientReplyContext::Flags flags
void processReplyAccessResult(const Acl::Answer &accessAllowed)
Definition: client_side_reply.cc:1866
const char * firstStoreLookup_
Definition: client_side_reply.h:142
void sendBodyTooLargeError()
Definition: client_side_reply.cc:1758
CollapsedRevalidation collapsedRevalidation
Definition: client_side_reply.h:158
const char * storeLookupString(bool found) const
Definition: client_side_reply.h:124
bool purgeEntry(StoreEntry &, const Http::MethodType, const char *descriptionPrefix="")
Definition: client_side_reply.cc:980
void requestMoreBodyFromStore()
Definition: client_side_reply.cc:251
void noteStreamBufferredBytes(const StoreIOBuffer &)
Definition: client_side_reply.cc:2066
void sendMoreData(StoreIOBuffer result)
Definition: client_side_reply.cc:1967
StoreIOBuffer lastStreamBufferedBytes
HTTP response body bytes stored in our Client Stream buffer (if any)
Definition: client_side_reply.h:161
clientStream_status_t replyStatus()
Definition: client_side_reply.cc:1113
void removeStoreReference(store_client **scp, StoreEntry **ep)
Definition: client_side_reply.cc:167
LogTags * loggingTags() const override
Definition: client_side_reply.cc:887
bool processConditional()
process conditional request from client
Definition: client_side_reply.cc:784
int storeOKTransferDone() const
Definition: client_side_reply.cc:1041
void processReplyAccess()
Definition: client_side_reply.cc:1825
clientStreamNode * getNextNode() const
Definition: client_side_reply.cc:229
void fillChecklist(ACLFilledChecklist &) const override
configure the given checklist (to reflect the current transaction state)
Definition: client_side_reply.cc:2073
void identifyStoreObject()
Definition: client_side_reply.cc:1483
void setReplyToError(err_type, Http::StatusCode, char const *, const ConnStateData *, HttpRequest *, const char *, Auth::UserRequest::Pointer)
builds error using clientBuildError() and calls setReplyToError() below
Definition: client_side_reply.cc:95
clientReplyContext(ClientHttpRequest *)
Definition: client_side_reply.cc:74
void detailStoreLookup(const char *detail)
remembers the very first Store lookup classification, ignoring the rest
Definition: client_side_reply.cc:1585
Definition: clientStream.h:76
Definition: StoreClient.h:70
void CSR(clientStreamNode *, ClientHttpRequest *)
client stream read
Definition: clientStreamForward.h:30
void purgeEntriesByUrl(HttpRequest *, const char *)
Definition: client_side_reply.cc:862
enum Http::_method_t MethodType
Definition: client_side_reply.h:79
unsigned storelogiccomplete
Definition: client_side_reply.h:82