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

panda/src/downloader/httpEnum.cxx

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

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