squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
adaptation
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
*
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
Elements.h
Adaptation::crlf
const char * crlf
Definition:
Elements.cc:12
Adaptation::Method
Method
Definition:
Elements.h:17
Adaptation::methodOptions
@ methodOptions
Definition:
Elements.h:17
Adaptation::methodRespmod
@ methodRespmod
Definition:
Elements.h:17
Adaptation::methodReqmod
@ methodReqmod
Definition:
Elements.h:17
Adaptation::vectPointStr
const char * vectPointStr(VectPoint)
Definition:
Elements.cc:39
Adaptation::VectPoint
VectPoint
Definition:
Elements.h:18
Adaptation::pointPreCache
@ pointPreCache
Definition:
Elements.h:18
Adaptation::pointPostCache
@ pointPostCache
Definition:
Elements.h:18
Adaptation::methodStr
const char * methodStr(Method)
Definition:
Elements.cc:15
squid.h
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Quick Setup
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
il
...
full list
FTP Package Archive