]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/Answer.cc
2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 93 ICAP (RFC 3507) Client */
12 #include "adaptation/Answer.h"
13 #include "base/AsyncJobCalls.h"
14 #include "http/Message.h"
17 Adaptation::Answer::Error(bool final
)
19 Answer
answer(akError
);
21 debugs(93, 4, HERE
<< "error: " << final
);
26 Adaptation::Answer::Forward(Http::Message
*aMsg
)
28 Answer
answer(akForward
);
29 answer
.message
= aMsg
;
30 debugs(93, 4, HERE
<< "forwarding: " << (void*)aMsg
);
35 Adaptation::Answer::Block(const String
&aRule
)
37 Answer
answer(akBlock
);
38 answer
.ruleId
= aRule
;
39 debugs(93, 4, HERE
<< "blocking rule: " << aRule
);
44 Adaptation::Answer::print(std::ostream
&os
) const
46 return os
<< kind
; // TODO: add more details
49 Adaptation::Answer::Answer(Kind aKind
): final(true), kind(aKind
)