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

 

Introduction

Documentation

Support

Miscellaneous