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

@@ -21,6 +21,8 @@
#include "client/Response.hxx"
#include "time/ISO8601.hxx"
#include <fmt/format.h>
void
time_print(Response &r, const char *name,
std::chrono::system_clock::time_point t)
@@ -33,5 +35,5 @@ time_print(Response &r, const char *name,
return;
}
r.Format("%s: %s\n", name, s.c_str());
r.Fmt(FMT_STRING("{}: {}\n"), name, s);
}