]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/icap/Elements.h
ee800a58158369d15427c141ad9af7ef32d62f43
2 * Copyright (C) 1996-2017 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 #ifndef SQUID_ICAPELEMENTS_H
10 #define SQUID_ICAPELEMENTS_H
12 #include "adaptation/Elements.h"
14 // ICAP-related things shared by many ICAP classes
21 //TODO: remove the ICAP namespace
24 using Adaptation::Method
;
25 using Adaptation::methodNone
;
26 using Adaptation::methodRespmod
;
27 using Adaptation::methodReqmod
;
29 using Adaptation::VectPoint
;
30 using Adaptation::pointNone
;
31 using Adaptation::pointPreCache
;
32 using Adaptation::pointPostCache
;
34 using Adaptation::crlf
;
35 using Adaptation::methodStr
;
36 using Adaptation::vectPointStr
;
39 typedef const char *XactOutcome
; ///< transaction result for logging
40 extern const XactOutcome xoUnknown
; ///< initial value: outcome was not set
41 extern const XactOutcome xoGone
; ///< initiator gone, will not continue
42 extern const XactOutcome xoRace
; ///< ICAP server closed pconn when we started
43 extern const XactOutcome xoError
; ///< all kinds of transaction errors
44 extern const XactOutcome xoOpt
; ///< OPTION transaction
45 extern const XactOutcome xoEcho
; ///< preserved virgin message (ICAP 204)
46 extern const XactOutcome xoPartEcho
; ///< preserved virgin msg part (ICAP 206)
47 extern const XactOutcome xoModified
; ///< replaced virgin msg with adapted
48 extern const XactOutcome xoSatisfied
; ///< request satisfaction
51 } // namespace Adaptation
53 #endif /* SQUID_ICAPCLIENT_H */