Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/downloader/httpEnum.h

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

Generated on Fri May 2 00:36:50 2003 for Panda by doxygen1.3