Panda3D
panda
src
downloader
httpEnum.cxx
1
// Filename: httpEnum.cxx
2
// Created by: drose (25Oct02)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#include "httpEnum.h"
16
17
#ifdef HAVE_OPENSSL
18
19
////////////////////////////////////////////////////////////////////
20
// Function: HTTPEnum::Method::output operator
21
// Description:
22
////////////////////////////////////////////////////////////////////
23
ostream &
24
operator << (ostream &out, HTTPEnum::Method method) {
25
switch
(method) {
26
case
HTTPEnum::M_options:
27
out <<
"OPTIONS"
;
28
break
;
29
30
case
HTTPEnum::M_get:
31
out <<
"GET"
;
32
break
;
33
34
case
HTTPEnum::M_head:
35
out <<
"HEAD"
;
36
break
;
37
38
case
HTTPEnum::M_post:
39
out <<
"POST"
;
40
break
;
41
42
case
HTTPEnum::M_put:
43
out <<
"PUT"
;
44
break
;
45
46
case
HTTPEnum::M_delete:
47
out <<
"DELETE"
;
48
break
;
49
50
case
HTTPEnum::M_trace:
51
out <<
"TRACE"
;
52
break
;
53
54
case
HTTPEnum::M_connect:
55
out <<
"CONNECT"
;
56
break
;
57
}
58
59
return
out;
60
}
61
62
#endif // HAVE_OPENSSL
Generated on Wed May 17 2017 23:41:13 for Panda3D by
1.8.13