]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 The Squid Software Foundation and contributors |
bbc27441 AJ |
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 | ||
582c2af2 | 9 | #include "squid.h" |
a68cf076 AR |
10 | #include "adaptation/Elements.h" |
11 | ||
12 | const char *Adaptation::crlf = "\r\n"; | |
13 | ||
14 | const char * | |
15 | Adaptation::methodStr(Adaptation::Method method) | |
16 | { | |
26ac0430 | 17 | switch (method) { |
a68cf076 AR |
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 | ||
a68cf076 AR |
38 | const char * |
39 | Adaptation::vectPointStr(Adaptation::VectPoint point) | |
40 | { | |
26ac0430 | 41 | switch (point) { |
a68cf076 AR |
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 |