a boolean flag that is false by default and becomes permanently false if vetoed More...
#include <SupportOrVeto.h>
![Collaboration graph](classSupportOrVeto__coll__graph.png)
Public Member Functions | |
bool | decision () const |
either the current explicit decision or, by default, false More... | |
operator bool () const | |
either the current explicit decision or, by default, false More... | |
void | support () |
void | veto () |
makes decision() false regardless of past or future support() calls More... | |
Private Attributes | |
std::optional< bool > | decision_ |
current decision (if any) More... | |
Detailed Description
Definition at line 15 of file SupportOrVeto.h.
Member Function Documentation
◆ decision()
|
inline |
◆ operator bool()
|
inline |
Definition at line 22 of file SupportOrVeto.h.
References decision().
◆ support()
|
inline |
Makes (or keeps) decision() true in the absence of veto() calls. No effect if veto() has been called.
Definition at line 26 of file SupportOrVeto.h.
References decision_.
Referenced by clientInterpretRequestHeaders(), TestRock::createEntry(), peerDigestRequest(), storeDigestRewriteStart(), and TestUfs::testUfsSearch().
◆ veto()
|
inline |
Definition at line 29 of file SupportOrVeto.h.
References decision_.
Referenced by clientInterpretRequestHeaders(), RequestFlags::disableCacheUse(), ClientRequestContext::hostHeaderVerifyFailed(), and HttpStateData::httpBuildRequestHeader().
Member Data Documentation
◆ decision_
|
private |
Definition at line 33 of file SupportOrVeto.h.
Referenced by decision(), support(), and veto().
The documentation for this class was generated from the following file:
- src/base/SupportOrVeto.h
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