]> git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/Elements.cc
Merged from trunk.
[thirdparty/squid.git] / src / adaptation / Elements.cc
1 #include "squid.h"
2 #include "adaptation/Elements.h"
3
4 const char *Adaptation::crlf = "\r\n";
5
6 const char *
7 Adaptation::methodStr(Adaptation::Method method)
8 {
9 switch(method) {
10
11 case Adaptation::methodReqmod:
12 return "REQMOD";
13 break;
14
15 case Adaptation::methodRespmod:
16 return "RESPMOD";
17 break;
18
19 case Adaptation::methodOptions:
20 return "OPTIONS";
21 break;
22
23 default:
24 break;
25 }
26
27 return "NONE";
28 }
29
30
31 const char *
32 Adaptation::vectPointStr(Adaptation::VectPoint point)
33 {
34 switch(point) {
35
36 case Adaptation::pointPreCache:
37 return "PRECACHE";
38 break;
39
40 case Adaptation::pointPostCache:
41 return "POSTCACHE";
42 break;
43
44 default:
45 break;
46 }
47
48 return "NONE";
49 }
50
51