

| Public Member Functions | |
| MimeIcon (const char *aName) | |
| ~MimeIcon () override | |
| void | setName (char const *) | 
| SBuf | getName () const | 
| void | load () | 
| LogTags * | loggingTags () const override | 
| void | fillChecklist (ACLFilledChecklist &) const override | 
| configure the given checklist (to reflect the current transaction state)  More... | |
| Protected Member Functions | |
| 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... | |
| Private Member Functions | |
| MEMPROXY_CLASS (MimeIcon) | |
| Private Attributes | |
| SBuf | icon_ | 
| char * | url_ | 
Detailed Description
Constructor & Destructor Documentation
◆ MimeIcon()
| 
 | explicit | 
◆ ~MimeIcon()
| 
 | override | 
Member Function Documentation
◆ fillChecklist()
| 
 | overridevirtual | 
◆ getName()
| SBuf MimeIcon::getName | ( | ) | const | 
◆ load()
| void MimeIcon::load | ( | ) | 
Definition at line 356 of file mime.cc.
References StoreEntry::append(), assert, StoreEntry::buffer(), SBuf::c_str(), Http::Message::cache_control, StoreEntry::complete(), Config, DBG_CRITICAL, debugs, SquidConfig::directory, EBIT_SET, ENTRY_SPECIAL, fatal(), fatalf(), FD_READ_METHOD(), file_close(), file_open(), StoreEntry::flags, StoreEntry::flush(), HttpRequest::FromUrlXXX(), RefCount< C >::getRaw(), Http::Message::header, icon_, SquidConfig::icons, StoreEntry::lock(), HttpHdrCc::maxAge(), MAXPATHLEN, StoreEntry::mem_obj, Http::METHOD_GET, mimeGetContentType(), O_BINARY, HttpHeader::putCc(), StoreEntry::replaceHttpReply(), MemObject::request, Http::scNoContent, Http::scOkay, HttpReply::setHeaders(), StoreEntry::setPublicKey(), SQUIDSBUFPH, SQUIDSBUFPRINT, storeCreatePureEntry(), storeGetPublic(), StoreEntry::timestampsSet(), url_, and xstrerr().
Referenced by mimeInit().
◆ loggingTags()
| 
 | inlineoverridevirtual | 
- Returns
- LogTags (if the class logs transactions) or nil (otherwise)
Implements StoreClient.
◆ mayInitiateCollapsing()
| 
 | inlineprotectedinherited | 
Definition at line 59 of file StoreClient.h.
References StoreClient::onCollapsingPath().
Referenced by clientReplyContext::createStoreEntry(), and clientReplyContext::processExpired().
◆ MEMPROXY_CLASS()
| 
 | private | 
◆ 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().
◆ setName()
| void MimeIcon::setName | ( | char const * | aString | ) | 
Definition at line 137 of file mime.cc.
References icon_, internalLocalUri(), url_, xfree, and xstrdup.
Referenced by MimeIcon().
◆ 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
◆ didCollapse
| 
 | mutableprotectedinherited | 
Definition at line 64 of file StoreClient.h.
Referenced by clientReplyContext::cacheHit(), htcpSpecifier::checkHit(), ICPState::confirmAndPrepHit(), and StoreClient::startCollapsingOn().
◆ icon_
| 
 | private | 
◆ url_
| 
 | private | 
Definition at line 59 of file mime.cc.
Referenced by load(), setName(), and ~MimeIcon().
The documentation for this class was generated from the following file:
- src/mime.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
