1// Aseprite Network Library
2// Copyright (c) 2001-2015 David Capello
3//
4// This file is released under the terms of the MIT license.
5// Read LICENSE.txt for more information.
6
7#ifndef NET_HTTP_HEADERS_H_INCLUDED
8#define NET_HTTP_HEADERS_H_INCLUDED
9#pragma once
10
11#include <map>
12#include <string>
13
14namespace net {
15
16class HttpHeaders
17{
18public:
19 typedef std::map<std::string, std::string> Map;
20 typedef Map::iterator iterator;
21 typedef Map::const_iterator const_iterator;
22
23 iterator begin() { return m_map.begin(); }
24 iterator end() { return m_map.end(); }
25 const_iterator begin() const { return m_map.begin(); }
26 const_iterator end() const { return m_map.end(); }
27
28 void setHeader(const std::string& name,
29 const std::string& value);
30
31private:
32 Map m_map;
33};
34
35} // namespace net
36
37#endif // NET_HTTP_HEADERS_H_INCLUDED
38