Panda3D

httpEnum.h
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.h
10 * @author drose
11 * @date 2002-10-25
12 */
13
14 #ifndef HTTPENUM_H
15 #define HTTPENUM_H
16
17 #include "pandabase.h"
18
19 // This module requires OpenSSL to compile, even if you do not intend to use
20 // this to establish https connections; this is because it uses the OpenSSL
21 // library to portably handle all of the socket communications.
22
23 #ifdef HAVE_OPENSSL
24
25 /**
26 * This class is just used as a namespace wrapper for some of the enumerated
27 * types used by various classes within the HTTPClient family.
28 */
29 class EXPCL_PANDA_DOWNLOADER HTTPEnum {
30 PUBLISHED:
31 enum HTTPVersion {
32 HV_09, // HTTP 0.9 or older
33 HV_10, // HTTP 1.0
34 HV_11, // HTTP 1.1
35 HV_other,
36 };
37
38 enum Method {
39 M_options,
40 M_get,
41 M_head,
42 M_post,
43 M_put,
44 M_delete,
45 M_trace,
46 M_connect,
47 };
48 };
49
50 std::ostream &operator << (std::ostream &out, HTTPEnum::Method method);
51
52 #endif // HAVE_OPENSSL
53
54 #endif
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.