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/header_parser.hh | |
| parent | 978bb2523f2eef42eca8dbe35e0ad351a4953aa7 (diff) | |
Start of CGI interface
Diffstat (limited to 'src/header_parser.hh')
| -rw-r--r-- | src/header_parser.hh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/header_parser.hh b/src/header_parser.hh new file mode 100644 index 0000000..b0bfd60 --- /dev/null +++ b/src/header_parser.hh @@ -0,0 +1,24 @@ +#ifndef HEADER_PARSER_HH +#define HEADER_PARSER_HH + +#include <map> +#include <string> + +namespace stuff { + +class HeaderParser { +public: + // token and keys to parameters will all be returned as lowercase ascii + static bool parse(const std::string& in, std::string* token, + std::map<std::string, std::string>* parameters); + +private: + HeaderParser() {} + ~HeaderParser() {} + HeaderParser(const HeaderParser&) = delete; + HeaderParser& operator=(const HeaderParser&) = delete; +}; + +} // namespace stuff + +#endif /* HEADER_PARSER_HH */ |
