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