9#ifndef SQUID_SRC_ADAPTATION_ANSWER_H
10#define SQUID_SRC_ADAPTATION_ANSWER_H
41 std::ostream &
print(std::ostream &os)
const;
56 return answer.
print(os);
summarizes adaptation service answer for the noteAdaptationAnswer() API
std::optional< SBuf > ruleId
ACL (or similar rule) name that blocked forwarding.
static Answer Block(const SBuf &aRule)
create an akBlock answer
static Answer Forward(Http::Message *aMsg)
create an akForward answer
Acl::Answer blockedToChecklistAnswer() const
creates an Acl::Answer from akBlock answer
Kind kind
the type of the answer
std::ostream & print(std::ostream &os) const
Http::MessagePointer message
HTTP request or response to forward.
Kind
helps interpret other members without a class hierarchy
@ akForward
forward the supplied adapted HTTP message
@ akBlock
block or deny the master xaction; see authority
@ akError
no adapted message will come; see bypassable
common parts of HttpRequest and HttpReply
std::ostream & operator<<(std::ostream &os, const Answer &answer)