-// Parse the configuration file.
-std::vector<ConfigLine> parse_config(const std::string &filename);
-
-// Note: Limits are inclusive.
-int fetch_config_int(const std::vector<ConfigLine> &config, const std::string &keyword, int min_limit, int max_limit);
+// Extract HTTP headers from a request or response. Ignores the first line,
+// where the verb or the return code is.
+std::multimap<std::string, std::string> extract_headers(
+ const std::vector<std::string> &lines, const std::string &log_context);