]> git.tdb.fi Git - libs/net.git/blob - source/http/formdata.h
32328910b92c55eab01ce8cc3f1e2108ca56d28c
[libs/net.git] / source / http / formdata.h
1 #ifndef MSP_HTTP_FORMDATA_H_
2 #define MSP_HTTP_FORMDATA_H_
3
4 #include <map>
5 #include <string>
6
7 namespace Msp {
8 namespace Http {
9
10 class Request;
11
12 class FormData
13 {
14 private:
15         std::map<std::string, std::string> fields;
16
17 public:
18         FormData(const Request &);
19 private:
20         void parse_multipart(const Request &, const std::string &);
21
22 public:
23         const std::string &get_value(const std::string &) const;
24 };
25
26 } // namespace Http
27 } // namespace Msp
28
29 #endif