|
Squid Web Cache master
|
summarizes adaptation service answer for the noteAdaptationAnswer() API More...
#include <Answer.h>
Public Types | |
| enum | Kind { akForward , akBlock , akError } |
| helps interpret other members without a class hierarchy More... | |
Public Member Functions | |
| Acl::Answer | blockedToChecklistAnswer () const |
| creates an Acl::Answer from akBlock answer | |
| std::ostream & | print (std::ostream &os) const |
Static Public Member Functions | |
| static Answer | Error (bool final) |
| create an akError answer | |
| static Answer | Forward (Http::Message *aMsg) |
| create an akForward answer | |
| static Answer | Block (const SBuf &aRule) |
| create an akBlock answer | |
Public Attributes | |
| Http::MessagePointer | message |
| HTTP request or response to forward. | |
| std::optional< SBuf > | ruleId |
| ACL (or similar rule) name that blocked forwarding. | |
| bool | final |
| whether the error, if any, cannot be bypassed | |
| Kind | kind |
| the type of the answer | |
Private Member Functions | |
| Answer (Kind aKind) | |
| use static creators instead | |
|
static |
Definition at line 35 of file Answer.cc.
References debugs, and ruleId.
Referenced by Adaptation::Ecap::XactionRep::blockVirgin().
| Acl::Answer Adaptation::Answer::blockedToChecklistAnswer | ( | ) | const |
Definition at line 44 of file Answer.cc.
References ACCESS_DENIED, assert, and Acl::Answer::lastCheckedName.
Referenced by ClientHttpRequest::handleAdaptationBlock(), and Client::handleAdaptationBlocked().
|
static |
|
static |
Definition at line 26 of file Answer.cc.
References debugs, and message.
Referenced by Adaptation::Iterator::handleAdaptationError(), Adaptation::Icap::OptXact::handleCommRead(), Adaptation::Icap::ModXact::startSending(), Adaptation::Iterator::step(), Adaptation::Ecap::XactionRep::useAdapted(), and Adaptation::Ecap::XactionRep::useVirgin().
| std::ostream & Adaptation::Answer::print | ( | std::ostream & | os | ) | const |
Definition at line 53 of file Answer.cc.
Referenced by Adaptation::operator<<().
| bool Adaptation::Answer::final |
Definition at line 46 of file Answer.h.
Referenced by Error(), ClientHttpRequest::noteAdaptationAnswer(), Client::noteAdaptationAnswer(), and Adaptation::Iterator::noteAdaptationAnswer().
| Kind Adaptation::Answer::kind |
Definition at line 47 of file Answer.h.
Referenced by ClientHttpRequest::noteAdaptationAnswer(), Client::noteAdaptationAnswer(), Adaptation::Icap::Launcher::noteAdaptationAnswer(), Adaptation::Icap::ServiceRep::noteAdaptationAnswer(), and Adaptation::Iterator::noteAdaptationAnswer().
| Http::MessagePointer Adaptation::Answer::message |
Definition at line 44 of file Answer.h.
Referenced by Forward(), ClientHttpRequest::noteAdaptationAnswer(), Client::noteAdaptationAnswer(), Adaptation::Icap::ServiceRep::noteAdaptationAnswer(), and Adaptation::Iterator::noteAdaptationAnswer().
| std::optional<SBuf> Adaptation::Answer::ruleId |