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 More... | |
std::ostream & | print (std::ostream &os) const |
Static Public Member Functions | |
static Answer | Error (bool final) |
create an akError answer More... | |
static Answer | Forward (Http::Message *aMsg) |
create an akForward answer More... | |
static Answer | Block (const SBuf &aRule) |
create an akBlock answer More... | |
Public Attributes | |
Http::MessagePointer | message |
HTTP request or response to forward. More... | |
std::optional< SBuf > | ruleId |
ACL (or similar rule) name that blocked forwarding. More... | |
bool | final |
whether the error, if any, cannot be bypassed More... | |
Kind | kind |
the type of the answer More... | |
Private Member Functions | |
Answer (Kind aKind) | |
use static creators instead More... | |
Detailed Description
Member Enumeration Documentation
◆ Kind
Constructor & Destructor Documentation
◆ Answer()
Member Function Documentation
◆ Block()
|
static |
Definition at line 35 of file Answer.cc.
References debugs, and ruleId.
Referenced by Adaptation::Ecap::XactionRep::blockVirgin().
◆ blockedToChecklistAnswer()
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().
◆ Error()
|
static |
◆ Forward()
|
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().
◆ print()
std::ostream & Adaptation::Answer::print | ( | std::ostream & | os | ) | const |
Definition at line 53 of file Answer.cc.
Referenced by Adaptation::operator<<().
Member Data Documentation
◆ final
bool Adaptation::Answer::final |
Definition at line 46 of file Answer.h.
Referenced by Error(), Adaptation::Iterator::noteAdaptationAnswer(), Client::noteAdaptationAnswer(), and ClientHttpRequest::noteAdaptationAnswer().
◆ kind
Kind Adaptation::Answer::kind |
Definition at line 47 of file Answer.h.
Referenced by Adaptation::Iterator::noteAdaptationAnswer(), Adaptation::Icap::Launcher::noteAdaptationAnswer(), Client::noteAdaptationAnswer(), Adaptation::Icap::ServiceRep::noteAdaptationAnswer(), and ClientHttpRequest::noteAdaptationAnswer().
◆ message
Http::MessagePointer Adaptation::Answer::message |
Definition at line 44 of file Answer.h.
Referenced by Forward(), Adaptation::Iterator::noteAdaptationAnswer(), Client::noteAdaptationAnswer(), Adaptation::Icap::ServiceRep::noteAdaptationAnswer(), and ClientHttpRequest::noteAdaptationAnswer().
◆ ruleId
std::optional<SBuf> Adaptation::Answer::ruleId |
The documentation for this class was generated from the following files:
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