Files
VoidNet/include/VoidNet_LL/Headers.hpp
TheDoctor 5f13265c5d Update
NetworkMessage->GetData fixed
Plugin -> Splitted message types
PluginManager is now thread safe
TcpConnection added list of events
Properly handling disconnection now
Fixed bug in Socket with error translation
It crashes when it exits, i think it has something to do with shared ptrs or something
2019-10-21 00:27:21 +01:00

34 lines
624 B
C++

// https://github.com/mfichman/http
#pragma once
#include <map>
#include <string>
namespace std::net
{
class Headers
{
public:
const string operator[](const string &name) const;
multimap<string, string>::const_iterator begin() const
{
return m_header.begin();
}
multimap<string, string>::const_iterator end() const
{
return m_header.end();
}
void AddHeader(string const& name, string const& value);
static string const HOST;
static string const CONTENT_LENGTH;
static string const ACCEPT_ENCODING;
static string const CONNECTION;
private:
multimap<string, string> m_header;
};
}