Panda3D
panda
src
downloader
httpEnum.h
1
// Filename: httpEnum.h
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
#ifndef HTTPENUM_H
16
#define HTTPENUM_H
17
18
#include "pandabase.h"
19
20
// This module requires OpenSSL to compile, even if you do not intend
21
// to use this to establish https connections; this is because it uses
22
// the OpenSSL library to portably handle all of the socket
23
// communications.
24
25
#ifdef HAVE_OPENSSL
26
27
////////////////////////////////////////////////////////////////////
28
// Class : HTTPEnum
29
// Description : This class is just used as a namespace wrapper for
30
// some of the enumerated types used by various classes
31
// within the HTTPClient family.
32
////////////////////////////////////////////////////////////////////
33
class
EXPCL_PANDAEXPRESS HTTPEnum {
34
PUBLISHED:
35
enum
HTTPVersion {
36
HV_09,
// HTTP 0.9 or older
37
HV_10,
// HTTP 1.0
38
HV_11,
// HTTP 1.1
39
HV_other,
40
};
41
42
enum
Method {
43
M_options,
44
M_get,
45
M_head,
46
M_post,
47
M_put,
48
M_delete,
49
M_trace,
50
M_connect,
51
};
52
};
53
54
ostream &operator << (ostream &out, HTTPEnum::Method method);
55
56
#endif // HAVE_OPENSSL
57
58
#endif
59
Generated on Wed May 17 2017 23:41:13 for Panda3D by
1.8.13