00001 // Filename: httpEnum.h 00002 // Created by: drose (25Oct02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef HTTPENUM_H 00016 #define HTTPENUM_H 00017 00018 #include "pandabase.h" 00019 00020 // This module requires OpenSSL to compile, even if you do not intend 00021 // to use this to establish https connections; this is because it uses 00022 // the OpenSSL library to portably handle all of the socket 00023 // communications. 00024 00025 #ifdef HAVE_OPENSSL 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Class : HTTPEnum 00029 // Description : This class is just used as a namespace wrapper for 00030 // some of the enumerated types used by various classes 00031 // within the HTTPClient family. 00032 //////////////////////////////////////////////////////////////////// 00033 class EXPCL_PANDAEXPRESS HTTPEnum { 00034 PUBLISHED: 00035 enum HTTPVersion { 00036 HV_09, // HTTP 0.9 or older 00037 HV_10, // HTTP 1.0 00038 HV_11, // HTTP 1.1 00039 HV_other, 00040 }; 00041 00042 enum Method { 00043 M_options, 00044 M_get, 00045 M_head, 00046 M_post, 00047 M_put, 00048 M_delete, 00049 M_trace, 00050 M_connect, 00051 }; 00052 }; 00053 00054 ostream &operator << (ostream &out, HTTPEnum::Method method); 00055 00056 #endif // HAVE_OPENSSL 00057 00058 #endif 00059