| 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 |
| 9 | #pragma once |
| 10 | |
| 11 | #include <map> |
| 12 | #include <string> |
| 13 | |
| 14 | namespace net { |
| 15 | |
| 16 | class |
| 17 | { |
| 18 | public: |
| 19 | typedef std::map<std::string, std::string> ; |
| 20 | typedef Map::iterator ; |
| 21 | typedef Map::const_iterator ; |
| 22 | |
| 23 | iterator () { return m_map.begin(); } |
| 24 | iterator () { return m_map.end(); } |
| 25 | const_iterator () const { return m_map.begin(); } |
| 26 | const_iterator () const { return m_map.end(); } |
| 27 | |
| 28 | void (const std::string& name, |
| 29 | const std::string& value); |
| 30 | |
| 31 | private: |
| 32 | Map ; |
| 33 | }; |
| 34 | |
| 35 | } // namespace net |
| 36 | |
| 37 | #endif // NET_HTTP_HEADERS_H_INCLUDED |
| 38 | |