~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/ICAP/ICAPElements.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2010-05-04 11:15:49 UTC
  • mfrom: (1.3.1 upstream)
  • mto: (20.3.1 squeeze) (21.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100504111549-1apjh2g5sndki4te
Tags: upstream-3.1.3
ImportĀ upstreamĀ versionĀ 3.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "squid.h"
2
 
#include "ICAPElements.h"
3
 
 
4
 
const char *ICAP::crlf = "\r\n";
5
 
 
6
 
 
7
 
const char *
8
 
ICAP::methodStr(ICAP::Method method)
9
 
{
10
 
    switch(method) {
11
 
 
12
 
    case ICAP::methodReqmod:
13
 
        return "REQMOD";
14
 
        break;
15
 
 
16
 
    case ICAP::methodRespmod:
17
 
        return "RESPMOD";
18
 
        break;
19
 
 
20
 
    case ICAP::methodOptions:
21
 
        return "OPTIONS";
22
 
        break;
23
 
 
24
 
    default:
25
 
        break;
26
 
    }
27
 
 
28
 
    return "NONE";
29
 
}
30
 
 
31
 
 
32
 
const char *
33
 
ICAP::vectPointStr(ICAP::VectPoint point)
34
 
{
35
 
    switch(point) {
36
 
 
37
 
    case ICAP::pointPreCache:
38
 
        return "PRECACHE";
39
 
        break;
40
 
 
41
 
    case ICAP::pointPostCache:
42
 
        return "POSTCACHE";
43
 
        break;
44
 
 
45
 
    default:
46
 
        break;
47
 
    }
48
 
 
49
 
    return "NONE";
50
 
}
51
 
 
52