9#ifndef SQUID_ADAPTATION__ANSWER_H
10#define SQUID_ADAPTATION__ANSWER_H
36 std::ostream &
print(std::ostream &os)
const;
51 return answer.
print(os);
summarizes adaptation service answer for the noteAdaptationAnswer() API
String ruleId
ACL (or similar rule) name that blocked forwarding.
static Answer Forward(Http::Message *aMsg)
create an akForward answer
static Answer Error(bool final)
create an akError answer
static Answer Block(const String &aRule)
create an 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.
Answer(Kind aKind)
use static creators instead
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)