]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/Answer.cc
2 * Copyright (C) 1996-2016 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"
16 Adaptation::Answer::Error(bool final
)
18 Answer
answer(akError
);
20 debugs(93, 4, HERE
<< "error: " << final
);
25 Adaptation::Answer::Forward(HttpMsg
*aMsg
)
27 Answer
answer(akForward
);
28 answer
.message
= aMsg
;
29 debugs(93, 4, HERE
<< "forwarding: " << (void*)aMsg
);
34 Adaptation::Answer::Block(const String
&aRule
)
36 Answer
answer(akBlock
);
37 answer
.ruleId
= aRule
;
38 debugs(93, 4, HERE
<< "blocking rule: " << aRule
);
43 Adaptation::Answer::print(std::ostream
&os
) const
45 return os
<< kind
; // TODO: add more details
48 Adaptation::Answer::Answer(Kind aKind
): final(true), kind(aKind
)