Elements.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
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.
7  */
8 
9 #ifndef SQUID_SRC_ADAPTATION_ICAP_ELEMENTS_H
10 #define SQUID_SRC_ADAPTATION_ICAP_ELEMENTS_H
11 
12 #include "adaptation/Elements.h"
13 
14 // ICAP-related things shared by many ICAP classes
15 
16 namespace Adaptation
17 {
18 namespace Icap
19 {
20 
21 //TODO: remove the ICAP namespace
22 namespace ICAP
23 {
24 using Adaptation::Method;
28 
33 
34 using Adaptation::crlf;
37 }
38 
39 typedef const char *XactOutcome;
40 extern const XactOutcome xoUnknown;
41 extern const XactOutcome xoGone;
42 extern const XactOutcome xoRace;
43 extern const XactOutcome xoError;
44 extern const XactOutcome xoOpt;
45 extern const XactOutcome xoEcho;
46 extern const XactOutcome xoPartEcho;
47 extern const XactOutcome xoModified;
48 extern const XactOutcome xoSatisfied;
49 
50 } // namespace Icap
51 } // namespace Adaptation
52 
53 #endif /* SQUID_SRC_ADAPTATION_ICAP_ELEMENTS_H */
54 
const XactOutcome xoError
all kinds of transaction errors
Definition: Elements.cc:21
const XactOutcome xoPartEcho
preserved virgin msg part (ICAP 206)
Definition: Elements.cc:24
const XactOutcome xoUnknown
initial value: outcome was not set
Definition: Elements.cc:18
const XactOutcome xoEcho
preserved virgin message (ICAP 204)
Definition: Elements.cc:23
const char * vectPointStr(VectPoint)
Definition: Elements.cc:39
const XactOutcome xoGone
initiator gone, will not continue
Definition: Elements.cc:19
const XactOutcome xoRace
ICAP server closed pconn when we started.
Definition: Elements.cc:20
@ pointPostCache
Definition: Elements.h:18
@ methodNone
Definition: Elements.h:17
const char * methodStr(Method)
Definition: Elements.cc:15
@ pointPreCache
Definition: Elements.h:18
const typedef char * XactOutcome
transaction result for logging
Definition: Elements.h:39
@ methodRespmod
Definition: Elements.h:17
@ pointNone
Definition: Elements.h:18
@ methodReqmod
Definition: Elements.h:17
const XactOutcome xoSatisfied
request satisfaction
Definition: Elements.cc:26
const char * crlf
Definition: Elements.cc:12
const XactOutcome xoModified
replaced virgin msg with adapted
Definition: Elements.cc:25
const XactOutcome xoOpt
OPTION transaction.
Definition: Elements.cc:22

 

Introduction

Documentation

Support

Miscellaneous