Panda3D
|
00001 // Filename: httpEnum.cxx 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 #include "httpEnum.h" 00016 00017 #ifdef HAVE_OPENSSL 00018 00019 //////////////////////////////////////////////////////////////////// 00020 // Function: HTTPEnum::Method::output operator 00021 // Description: 00022 //////////////////////////////////////////////////////////////////// 00023 ostream & 00024 operator << (ostream &out, HTTPEnum::Method method) { 00025 switch (method) { 00026 case HTTPEnum::M_options: 00027 out << "OPTIONS"; 00028 break; 00029 00030 case HTTPEnum::M_get: 00031 out << "GET"; 00032 break; 00033 00034 case HTTPEnum::M_head: 00035 out << "HEAD"; 00036 break; 00037 00038 case HTTPEnum::M_post: 00039 out << "POST"; 00040 break; 00041 00042 case HTTPEnum::M_put: 00043 out << "PUT"; 00044 break; 00045 00046 case HTTPEnum::M_delete: 00047 out << "DELETE"; 00048 break; 00049 00050 case HTTPEnum::M_trace: 00051 out << "TRACE"; 00052 break; 00053 00054 case HTTPEnum::M_connect: 00055 out << "CONNECT"; 00056 break; 00057 } 00058 00059 return out; 00060 } 00061 00062 #endif // HAVE_OPENSSL