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