client/Response: add method Fmt() based on libfmt

This commit is contained in:
Max Kellermann
2021-05-21 20:35:29 +02:00
parent a9c704b76e
commit 0440c41cba
27 changed files with 241 additions and 195 deletions

View File

@@ -26,8 +26,9 @@
#include "client/Response.hxx"
#include "util/UriExtract.hxx"
#include <cassert>
#include <fmt/format.h>
#include <cassert>
#include <string>
void print_supported_uri_schemes_to_fp(FILE *fp)
@@ -67,7 +68,7 @@ print_supported_uri_schemes(Response &r)
});
for (const auto& protocol : protocols) {
r.Format("handler: %s\n", protocol.c_str());
r.Fmt(FMT_STRING("handler: {}\n"), protocol);
}
}