X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=parse.h;h=1924cc08c9f3aab49c54bff4917ab38a6fb0a88d;hp=a56b1f4230edce227ff616603c8a9550d8b70c55;hb=1d285bcbfd1aa3f7911cfb98a947a37f68154428;hpb=5b6002ffa927ae9987d978126fa7cc30067ac1f2 diff --git a/parse.h b/parse.h index a56b1f4..1924cc0 100644 --- a/parse.h +++ b/parse.h @@ -4,8 +4,8 @@ // Various routines that deal with parsing; both HTTP requests and more generic text. #include -#include #include +#include #include // Split a line on whitespace, e.g. "foo bar baz" -> {"foo", "bar", "baz"}. @@ -16,7 +16,7 @@ std::vector split_lines(const std::string &str); // Extract HTTP headers from a request or response. Ignores the first line, // where the verb or the return code is. -std::multimap extract_headers( +std::unordered_multimap extract_headers( const std::vector &lines, const std::string &log_context); // Add the new data to an existing string, looking for \r\n\r\n