00001 #ifndef BOERN_HTTP_ResponseHeader 00002 #define BOERN_HTTP_ResponseHeader 00003 00004 // Copyright (C) 2002 Bernhard Assmann <b.assmann@uni-koeln.de> 00005 // 00006 // This program is free software; you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 2 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // This program is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with this program; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00019 // 00020 00021 #include <string> 00022 #include <vector> 00023 00035 class HttpResponseHeader 00036 { 00037 public: 00038 00042 explicit HttpResponseHeader( std::string contentType ); 00043 00044 ~HttpResponseHeader(); 00045 00052 const std::string 00053 getHeaders() const; 00054 00061 void 00062 addHeader( std::string directive, 00063 std::string content ); 00064 00071 void 00072 addHeader( std::string directive, 00073 int value ); 00074 00080 void 00081 addHeader( std::string directive ); 00082 00083 private: 00084 00091 HttpResponseHeader(); 00092 00097 std::vector< std::string > headerList_; 00098 }; 00099 #endif
1.2.14 geschrieben von Dimitri van Heesch,
 © 1997-2002