From e0aa767f9428eb34a7ab7c1169c1ecc55262dade Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 21 Feb 2006 12:28:42 +0000 Subject: --- src/HttpHeader.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/HttpHeader.h (limited to 'src/HttpHeader.h') diff --git a/src/HttpHeader.h b/src/HttpHeader.h new file mode 100644 index 00000000..3bcaa479 --- /dev/null +++ b/src/HttpHeader.h @@ -0,0 +1,46 @@ +/* */ +#ifndef _D_HTTP_HEADER_H_ +#define _D_HTTP_HEADER_H_ + +#include +#include +#include + +using namespace std; + +class HttpHeader { +private: + multimap table; +public: + HttpHeader() {} + ~HttpHeader() {} + + void put(const string& name, const string& value); + bool defined(const string& name) const; + string getFirst(const string& name) const; + vector get(const string& name) const; + int getFirstAsInt(const string& name) const; + long long int getFirstAsLLInt(const string& name) const; +}; + +#endif // _D_HTTP_HEADER_H_ -- cgit