aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpasio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zenhttp/httpasio.cpp')
-rw-r--r--zenhttp/httpasio.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp
index e1d417d06..7a6efd884 100644
--- a/zenhttp/httpasio.cpp
+++ b/zenhttp/httpasio.cpp
@@ -7,7 +7,7 @@
#include <deque>
#include <memory>
-#include <memory_resource>
+#include <vector>
ZEN_THIRD_PARTY_INCLUDES_START
#if ZEN_PLATFORM_WINDOWS
@@ -28,7 +28,6 @@ ZEN_THIRD_PARTY_INCLUDES_END
namespace zen::asio_http {
using namespace std::literals;
-using namespace fmt::literals;
struct HttpAcceptor;
struct HttpRequest;
@@ -154,6 +153,14 @@ struct HttpRequest
private:
struct HeaderEntry
{
+ HeaderEntry() = default;
+
+ HeaderEntry(std::string_view InName, std::string_view InValue)
+ : Name(InName)
+ , Value(InValue)
+ {
+ }
+
std::string_view Name;
std::string_view Value;
};
@@ -1127,7 +1134,7 @@ HttpAsioServerImpl::Start(uint16_t Port, int ThreadCount)
for (int i = 0; i < ThreadCount; ++i)
{
m_ThreadPool.emplace_back([this, Index = i + 1] {
- SetCurrentThreadName("asio worker {}"_format(Index));
+ SetCurrentThreadName(fmt::format("asio worker {}", Index));
try
{