#include <map>
#include <string>
#include <msp/core/variant.h>
+#include <msp/net/mspnet_api.h>
#include "version.h"
namespace Msp {
namespace Http {
-class Message
+class MSPNET_API Message
{
protected:
typedef std::map<std::string, std::string> HeaderMap;
- Version http_version;
+ Version http_version = 0x11;
HeaderMap headers;
std::string content;
- unsigned chunk_length;
- bool complete;
+ std::string::size_type chunk_length = 0;
+ bool complete = false;
Variant user_data;
- Message();
+ Message() = default;
public:
- virtual ~Message() { }
+ virtual ~Message() = default;
void set_header(const std::string &, const std::string &);
bool has_header(const std::string &) const;