]> git.tdb.fi Git - libs/net.git/blob - source/http/header.h
Implement an asynchronous name resolver class
[libs/net.git] / source / http / header.h
1 #ifndef MSP_HTTP_HEADER_H_
2 #define MSP_HTTP_HEADER_H_
3
4 #include <map>
5 #include <string>
6 #include <vector>
7
8 namespace Msp {
9 namespace Http {
10
11 class Message;
12
13 struct Header
14 {
15         struct Value
16         {
17                 std::string value;
18                 std::map<std::string, std::string> parameters;
19         };
20
21         std::string name;
22         std::string raw_value;
23         std::vector<Value> values;
24
25         Header() { }
26         Header(const Message &, const std::string &);
27         Header(const std::string &, const std::string &);
28
29         void parse();
30 };
31
32 } // namespace Http
33 } // namespace Msp
34
35 #endif