blob: f6bfcd61969860c89cb8edf7c3cefbc60b307ab4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef MULTIPART_FORMDATA_PARSER_HH
#define MULTIPART_FORMDATA_PARSER_HH
#include <map>
#include <string>
#include <vector>
namespace stuff {
class MultipartFormDataParser {
public:
static bool parse(const std::vector<char>& in,
const std::string& boundary,
std::map<std::string, std::string>* out);
private:
MultipartFormDataParser() {}
~MultipartFormDataParser() {}
MultipartFormDataParser(const MultipartFormDataParser&) = delete;
MultipartFormDataParser& operator=(const MultipartFormDataParser&) = delete;
};
} // namespace stuff
#endif /* MULTIPART_FORMDATA_PARSER_HH */
|