

| Public Member Functions | |
| ICP2State (icp_common_t &aHeader, HttpRequest *aRequest) | |
| ~ICP2State () override | |
| bool | isHit () const | 
| whether the cache contains the requested entry  More... | |
| Public Attributes | |
| int | rtt | 
| int | src_rtt | 
| uint32_t | flags | 
| icp_common_t | header | 
| HttpRequest * | request | 
| int | fd | 
| Ip::Address | from | 
| char * | url | 
| AccessLogEntryPointer | al | 
| Protected Member Functions | |
| LogTags * | loggingTags () const override | 
| void | fillChecklist (ACLFilledChecklist &) const override | 
| configure the given checklist (to reflect the current transaction state)  More... | |
| bool | confirmAndPrepHit (const StoreEntry &) const | 
| either confirms and starts processing a cache hit or returns false  More... | |
| bool | startCollapsingOn (const StoreEntry &, const bool doingRevalidation) const | 
| bool | mayInitiateCollapsing () const | 
| whether Squid configuration allows us to become a CF initiator  More... | |
| bool | onCollapsingPath () const | 
| whether Squid configuration allows collapsing for this transaction  More... | |
| Protected Attributes | |
| bool | didCollapse = false | 
| whether startCollapsingOn() was called and returned true  More... | |
Detailed Description
Constructor & Destructor Documentation
◆ ICP2State()
| 
 | inline | 
◆ ~ICP2State()
Member Function Documentation
◆ confirmAndPrepHit()
| 
 | protectedinherited | 
Definition at line 168 of file icp_v2.cc.
References Config, StoreClient::didCollapse, StoreEntry::hittingRequiresCollapsing(), SquidConfig::icp_hit_stale, SquidConfig::onoff, refreshCheckICP(), ICPState::request, StoreClient::startCollapsingOn(), and StoreEntry::validToSend().
Referenced by ICPState::isHit().
◆ fillChecklist()
| 
 | overrideprotectedvirtualinherited | 
Implements Acl::ChecklistFiller.
Definition at line 192 of file icp_v2.cc.
References ICPState::al, ACLFilledChecklist::al, ICPState::from, icpSyncAle(), ICPState::request, ACLFilledChecklist::setRequest(), and ICPState::url.
◆ isHit()
| 
 | inherited | 
Definition at line 155 of file icp_v2.cc.
References ICPState::confirmAndPrepHit(), Http::METHOD_GET, storeGetPublic(), and ICPState::url.
Referenced by doV2Query(), and doV3Query().
◆ loggingTags()
| 
 | overrideprotectedvirtualinherited | 
- Returns
- LogTags (if the class logs transactions) or nil (otherwise)
Implements StoreClient.
Definition at line 183 of file icp_v2.cc.
References ICPState::al, AccessLogEntry::cache, and AccessLogEntry::CacheDetails::code.
◆ mayInitiateCollapsing()
| 
 | inlineprotectedinherited | 
Definition at line 59 of file StoreClient.h.
References StoreClient::onCollapsingPath().
Referenced by clientReplyContext::createStoreEntry(), and clientReplyContext::processExpired().
◆ onCollapsingPath()
| 
 | protectedinherited | 
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().
◆ startCollapsingOn()
| 
 | protectedinherited | 
- Returns
- whether the caller must collapse on the given entry Before returning true, updates common collapsing-related stats. See also: StoreEntry::hittingRequiresCollapsing().
Definition at line 66 of file store_client.cc.
References debugs, StoreClient::didCollapse, StoreEntry::hittingRequiresCollapsing(), StoreClient::loggingTags(), and StoreClient::onCollapsingPath().
Referenced by htcpSpecifier::checkHit(), ICPState::confirmAndPrepHit(), clientReplyContext::identifyFoundObject(), clientReplyContext::processExpired(), and UrnState::start().
Member Data Documentation
◆ al
| 
 | mutableinherited | 
Definition at line 77 of file ICP.h.
Referenced by doV2Query(), doV3Query(), ICPState::fillChecklist(), and ICPState::loggingTags().
◆ didCollapse
| 
 | mutableprotectedinherited | 
Definition at line 64 of file StoreClient.h.
Referenced by clientReplyContext::cacheHit(), htcpSpecifier::checkHit(), ICPState::confirmAndPrepHit(), and StoreClient::startCollapsingOn().
◆ fd
| 
 | inherited | 
Definition at line 73 of file ICP.h.
Referenced by doV2Query(), and doV3Query().
◆ flags
| uint32_t ICP2State::flags | 
Definition at line 215 of file icp_v2.cc.
Referenced by doV2Query().
◆ from
| 
 | inherited | 
Definition at line 75 of file ICP.h.
Referenced by doV2Query(), doV3Query(), and ICPState::fillChecklist().
◆ header
| 
 | inherited | 
◆ request
| 
 | inherited | 
Definition at line 72 of file ICP.h.
Referenced by ICPState::confirmAndPrepHit(), doV2Query(), ICPState::fillChecklist(), ICPState::ICPState(), and ICPState::~ICPState().
◆ rtt
| int ICP2State::rtt | 
Definition at line 213 of file icp_v2.cc.
Referenced by doV2Query().
◆ src_rtt
| int ICP2State::src_rtt | 
Definition at line 214 of file icp_v2.cc.
Referenced by doV2Query().
◆ url
| 
 | inherited | 
Definition at line 76 of file ICP.h.
Referenced by doV2Query(), doV3Query(), ICPState::fillChecklist(), ICPState::isHit(), and ICPState::~ICPState().
The documentation for this class was generated from the following file:
- src/icp_v2.cc
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
