Text of code-reference.squid-cache.org › classhtcpSpecifier.html as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

Squid Web Cache: htcpSpecifier Class Reference

Squid Web Cache master Loading... Searching... No Matches Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members htcpSpecifier Class Reference Inheritance diagram for htcpSpecifier: [ legend ] Collaboration diagram for htcpSpecifier: [ legend ] Public Types typedef RefCount < htcpSpecifier > Pointer Public Member Functions void checkHit () void checkedHit ( StoreEntry *) void setFrom ( Ip::Address &anIp) void setDataHeader ( htcpDataHeader *aDataHeader) ScopedId codeContextGist () const override std::ostream & detailCodeContext (std::ostream &os) const override appends human-friendly context description line(s) to a cache.log record LogTags * loggingTags () const override void fillChecklist ( ACLFilledChecklist &) const override configure the given checklist (to reflect the current transaction state) Static Public Member Functions static const Pointer & Current () static void Reset () forgets the current context, setting it to nil/unknown static void Reset (const Pointer ) changes the current context; nil argument sets it to nil/unknown Public Attributes const char * method = nullptr const char * uri = nullptr char * version = nullptr char * req_hdrs = nullptr size_t reqHdrsSz = 0 size of the req_hdrs content HttpRequest::Pointer request AccessLogEntryPointer al optimization: nil until needed Stopwatch busyTime time spent in this context (see also: busy_time) Protected Member Functions bool startCollapsingOn (const StoreEntry &, const bool doingRevalidation) const bool mayInitiateCollapsing () const whether Squid configuration allows us to become a CF initiator bool onCollapsingPath () const whether Squid configuration allows collapsing for this transaction Protected Attributes bool didCollapse = false whether startCollapsingOn() was called and returned true Private Member Functions MEMPROXY_CLASS ( htcpSpecifier ) Static Private Member Functions static void ForgetCurrent () static void Entering (const Pointer &codeCtx) static void Leaving () Private Attributes HttpRequest::Pointer checkHitRequest Ip::Address from htcpDataHeader * dhdr = nullptr Detailed Description Definition at line 126 of file htcp.cc .

Member Typedef Documentation ◆ Pointer typedef RefCount < htcpSpecifier > htcpSpecifier::Pointer Definition at line 131 of file htcp.cc . Member Function Documentation ◆ checkedHit() void htcpSpecifier::checkedHit ( StoreEntry * e ) Definition at line 1227 of file htcp.cc . References al , dhdr , from , htcpLogHtcp() , htcpTstReply() , LOG_UDP_HIT , LOG_UDP_MISS , _htcpDataHeader::opcode , and uri . Referenced by checkHit() . ◆ checkHit() void htcpSpecifier::checkHit ( ) Definition at line 993 of file htcp.cc .

References checkedHit() , checkHitRequest , debugs , StoreClient::didCollapse , RefCount< C >::getRaw() , HttpRequest::parseHeader() , refreshCheckHTCP() , req_hdrs , reqHdrsSz , request , StoreClient::startCollapsingOn() , and storeGetPublicByRequest() . ◆ codeContextGist() ScopedId htcpSpecifier::codeContextGist ( ) const override virtual Returns a small, permanent ID of the current context gists persist forever and are suitable for passing to other SMP workers Implements CodeContext .

Definition at line 961 of file htcp.cc . References al , AccessLogEntry::codeContextGist() , HttpRequest::masterXaction , and request . ◆ Current() const CodeContext::Pointer & CodeContext::Current ( ) static inherited Returns the known global context or, to indicate unknown context, nil Definition at line 33 of file CodeContext.cc . Referenced by CallAndRestore_() , CallSubscription< Call_ >::callback() , CallContextCreator() , clientConnectionsClose() , clientHttpConnectionsOpen() , commStartHalfClosedMonitor() , CurrentCodeContextDetail() , HappyOrderEnforcer::enqueue() , CommQuotaQueue::enqueue() , StoreEntry::invokeHandlers() , neighborsUdpPing() , peerDnsRefreshStart() , Security::KeyLog::record() , CodeContext::Reset() , ScheduleCall() , Ftp::StartListening() , Ftp::StopListening() , tunnelDelayedClientRead() , and tunnelDelayedServerRead() . ◆ detailCodeContext() std::ostream & htcpSpecifier::detailCodeContext ( std::ostream & os ) const override virtual Implements CodeContext .

Definition at line 978 of file htcp.cc . References al , AccessLogEntry::detailCodeContext() , Debug::Extra() , HttpRequest::masterXaction , and request . ◆ Entering() void CodeContext::Entering ( const Pointer & codeCtx ) static private inherited Switches the current context to the given known context. Improves debugging output by replacing omni-directional "Reset" with directional "Entering". Definition at line 55 of file CodeContext.cc .

References CodeContext::busyTime , CodeContext::codeContextGist() , debugs , CodeContext::ForgetCurrent() , and Stopwatch::resume() . Referenced by CodeContext::Reset() . ◆ fillChecklist() void htcpSpecifier::fillChecklist ( ACLFilledChecklist & ) const override virtual Implements Acl::ChecklistFiller . Definition at line 1043 of file htcp.cc . References ACLFilledChecklist::al , al , dhdr , from , RefCount< C >::getRaw() , htcpSyncAle() , _htcpDataHeader::opcode , request , ACLFilledChecklist::setRequest() , and uri . ◆ ForgetCurrent() void CodeContext::ForgetCurrent ( ) static private inherited Forgets the current known context, possibly triggering its destruction.

Preserves the gist of the being-forgotten context during its destruction. Knows nothing about the next context – the caller must set it. Definition at line 42 of file CodeContext.cc . References assert . Referenced by CodeContext::Entering() , and CodeContext::Leaving() . ◆ Leaving() void CodeContext::Leaving ( ) static private inherited Forgets the current known context. Improves debugging output by replacing omni-directional "Reset" with directional "Leaving".

Definition at line 68 of file CodeContext.cc . References debugs , and CodeContext::ForgetCurrent() . Referenced by CodeContext::Reset() , and CodeContext::Reset() . ◆ loggingTags() LogTags * htcpSpecifier::loggingTags ( ) const override virtual Returns LogTags (if the class logs transactions) or nil (otherwise) Implements StoreClient . Definition at line 1034 of file htcp.cc . References al , AccessLogEntry::cache , and AccessLogEntry::CacheDetails::code . ◆ mayInitiateCollapsing() bool StoreClient::mayInitiateCollapsing ( ) const inline protected inherited Definition at line 59 of file StoreClient.h .

References StoreClient::onCollapsingPath() . Referenced by clientReplyContext::createStoreEntry() , and clientReplyContext::processExpired() . ◆ MEMPROXY_CLASS() htcpSpecifier::MEMPROXY_CLASS ( htcpSpecifier ) private ◆ onCollapsingPath() bool StoreClient::onCollapsingPath ( ) const protected inherited Definition at line 52 of file store_client.cc . References SquidConfig::accessList , Acl::Answer::allowed() , SquidConfig::collapsed_forwarding , SquidConfig::collapsedForwardingAccess , Config , ACLChecklist::fastCheck() , Acl::ChecklistFiller::fillChecklist() , and SquidConfig::onoff .

Referenced by StoreClient::mayInitiateCollapsing() , and StoreClient::startCollapsingOn() . ◆ Reset() [1/2] void CodeContext::Reset ( ) static inherited Definition at line 77 of file CodeContext.cc . References CodeContext::Leaving() . Referenced by ClientHttpRequest::ClientHttpRequest() , CodeContextGuard::CodeContextGuard() , CodeContextGuard::~CodeContextGuard() , CallAndRestore_() , CallContextCreator() , checkTimeouts() , clientConnectionsClose() , clientHttpConnectionsOpen() , comm_close_complete() , Http::Stream::finished() , AsyncCallQueue::fire() , StoreEntry::invokeHandlers() , neighborsUdpPing() , peerCountMcastPeersCreateAndSend() , peerDnsRefreshStart() , ConnStateData::postHttpsAccept() , Ftp::StartListening() , Ftp::StopListening() , tunnelDelayedClientRead() , and tunnelDelayedServerRead() . ◆ Rese

The rest of this page is on the live site.