diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2015-05-28 21:14:52 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2015-05-28 21:16:14 +0200 |
| commit | 720295848ea0d909cb39c004cbeaf1055fa7cffc (patch) | |
| tree | 3a4c0332f8145986ddfc1c83e89b9cf8a1491546 /src/multipart_formdata_parser.hh | |
| parent | 978bb2523f2eef42eca8dbe35e0ad351a4953aa7 (diff) | |
Start of CGI interface
Diffstat (limited to 'src/multipart_formdata_parser.hh')
| -rw-r--r-- | src/multipart_formdata_parser.hh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/multipart_formdata_parser.hh b/src/multipart_formdata_parser.hh new file mode 100644 index 0000000..f6bfcd6 --- /dev/null +++ b/src/multipart_formdata_parser.hh @@ -0,0 +1,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 */ |
