Go to the documentation of this file.
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);
common parts of HttpRequest and HttpReply
Answer(Kind aKind)
use static creators instead
static Answer Error(bool final)
create an akError answer
@ akForward
forward the supplied adapted HTTP message
Kind
helps interpret other members without a class hierarchy
static Answer Block(const String &aRule)
create an akBlock answer
Kind kind
the type of the answer
summarizes adaptation service answer for the noteAdaptationAnswer() API
static Answer Forward(Http::Message *aMsg)
create an akForward answer
Http::MessagePointer message
HTTP request or response to forward.
@ akError
no adapted message will come; see bypassable
std::ostream & operator<<(std::ostream &os, const Answer &answer)
@ akBlock
block or deny the master xaction; see authority
std::ostream & print(std::ostream &os) const
String ruleId
ACL (or similar rule) name that blocked forwarding.