summaryrefslogtreecommitdiff
path: root/project2/cgi/cgiHttpHeader.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/cgi/cgiHttpHeader.h')
-rw-r--r--project2/cgi/cgiHttpHeader.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/project2/cgi/cgiHttpHeader.h b/project2/cgi/cgiHttpHeader.h
new file mode 100644
index 0000000..f84c707
--- /dev/null
+++ b/project2/cgi/cgiHttpHeader.h
@@ -0,0 +1,20 @@
+#ifndef HTTP_HEADER_H
+#define HTTP_HEADER_H
+
+#include <cgicc/HTTPHeader.h>
+#include <string>
+#include <map>
+#include <glibmm/ustring.h>
+
+class Project2HttpHeader : public cgicc::HTTPHeader {
+ public:
+ typedef std::map<std::string, const Glib::ustring> Headers;
+ Project2HttpHeader(const std::string & s, const std::string & t);
+ void addHeader(const std::string & name, const Glib::ustring & value);
+ void render(std::ostream & out) const;
+ private:
+ Headers headers;
+};
+
+#endif
+