Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _HTTPSTATUSHEADER_H_
00025 #define _HTTPSTATUSHEADER_H_ 1
00026
00027 #ifdef __GNUG__
00028 # pragma interface
00029 #endif
00030
00036 #include <string>
00037
00038 #include "cgicc/HTTPHeader.h"
00039
00040 namespace cgicc {
00041
00042
00043
00044
00045
00050 class CGICC_API HTTPStatusHeader : public HTTPHeader
00051 {
00052 public:
00053
00060 HTTPStatusHeader(int status,
00061 const std::string& message);
00062
00064 virtual ~HTTPStatusHeader();
00065
00070 inline int
00071 getStatusCode() const
00072 { return fStatus; }
00073
00074
00079 virtual void
00080 render(std::ostream& out) const;
00081
00082 private:
00083 HTTPStatusHeader();
00084 int fStatus;
00085 };
00086
00087 }
00088
00089 #endif