|
Squid Web Cache master
|
a boolean flag that is false by default and becomes permanently false if vetoed More...
#include <SupportOrVeto.h>
Public Member Functions | |
| bool | decision () const |
| either the current explicit decision or, by default, false | |
| operator bool () const | |
| either the current explicit decision or, by default, false | |
| void | support () |
| void | veto () |
| makes decision() false regardless of past or future support() calls | |
Private Attributes | |
| std::optional< bool > | decision_ |
| current decision (if any) | |
Definition at line 15 of file SupportOrVeto.h.
|
inline |
|
inline |
Definition at line 22 of file SupportOrVeto.h.
References decision().
|
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().
|
inline |
Definition at line 29 of file SupportOrVeto.h.
References decision_.
Referenced by clientInterpretRequestHeaders(), RequestFlags::disableCacheUse(), ClientRequestContext::hostHeaderVerifyFailed(), and HttpStateData::httpBuildRequestHeader().
|
private |
Definition at line 33 of file SupportOrVeto.h.
Referenced by decision(), support(), and veto().