lib/curl/Headers: central type definition for the header map

This commit is contained in:
Max Kellermann
2022-02-04 11:11:38 +01:00
committed by Max Kellermann
parent fdc0329e64
commit 1e548fb6e3
23 changed files with 90 additions and 75 deletions

View File

@@ -41,8 +41,7 @@ public:
}
/* virtual methods from CurlResponseHandler */
void OnHeaders(unsigned status,
std::multimap<std::string, std::string> &&headers) override {
void OnHeaders(unsigned status, Curl::Headers &&headers) override {
fprintf(stderr, "status: %u\n", status);
for (const auto &i : headers)
fprintf(stderr, "%s: %s\n",