3 This file is part of libmsphttp
4 Copyright © 2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
8 #ifndef MSP_HTTP_MESSAGE_H_
9 #define MSP_HTTP_MESSAGE_H_
20 virtual ~Message() { }
22 void set_header(const std::string &, const std::string &);
23 const std::string &get_header(const std::string &) const;
24 const std::string &get_data() const { return data; }
25 bool get_complete() const { return complete; }
26 void add_data(const std::string &);
27 unsigned parse_data(const std::string &);
28 virtual std::string str() const =0;
33 unsigned chunk_length;
37 std::string str_common() const;