]> git.tdb.fi Git - libs/net.git/blob - source/http/formdata.h
Add a dynamic receiver class for more flexible packet handling
[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 #include <msp/net/mspnet_api.h>
7
8 namespace Msp {
9 namespace Http {
10
11 class Request;
12
13 class MSPNET_API FormData
14 {
15 private:
16         std::map<std::string, std::string> fields;
17
18 public:
19         FormData(const Request &);
20 private:
21         void parse_multipart(const Request &, const std::string &);
22
23 public:
24         const std::string &get_value(const std::string &) const;
25 };
26
27 } // namespace Http
28 } // namespace Msp
29
30 #endif