]> git.tdb.fi Git - libs/net.git/blobdiff - source/message.h
Prepare for assimilation into mspnet
[libs/net.git] / source / message.h
diff --git a/source/message.h b/source/message.h
deleted file mode 100644 (file)
index 4d23102..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef MSP_HTTP_MESSAGE_H_
-#define MSP_HTTP_MESSAGE_H_
-
-#include <map>
-#include <string>
-#include <msp/core/variant.h>
-#include "version.h"
-
-namespace Msp {
-namespace Http {
-
-class Message
-{
-protected:
-       typedef std::map<std::string, std::string> HeaderMap;
-
-       Version http_version;
-       HeaderMap headers;
-       std::string content;
-       unsigned chunk_length;
-       bool complete;
-       Variant user_data;
-
-       Message();
-public:
-       virtual ~Message() { }
-
-       void set_header(const std::string &, const std::string &);
-       bool has_header(const std::string &) const;
-       const std::string &get_header(const std::string &) const;
-       void add_content(const std::string &);
-       const std::string &get_content() const { return content; }
-       void set_user_data(const Variant &);
-       const Variant &get_user_data() const { return user_data; }
-       bool is_complete() const { return complete; }
-       unsigned parse_content(const std::string &);
-       virtual std::string str() const = 0;
-protected:
-       unsigned parse_headers(const std::string &);
-       std::string str_common() const;
-       std::string normalize_header_name(const std::string &) const;
-};
-
-} // namespace Http
-} // namespace Msp
-
-#endif