aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/servers/httptracer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenhttp/servers/httptracer.h')
-rw-r--r--src/zenhttp/servers/httptracer.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/zenhttp/servers/httptracer.h b/src/zenhttp/servers/httptracer.h
new file mode 100644
index 000000000..da72c79c9
--- /dev/null
+++ b/src/zenhttp/servers/httptracer.h
@@ -0,0 +1,26 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
+#include <zenhttp/httpserver.h>
+
+#pragma once
+
+namespace zen {
+
+/** Helper class for HTTP server implementations
+
+ Provides some common functionality which can be used across all server
+ implementations. These could be in the root class but I think it's nicer
+ to hide the implementation details from client code
+ */
+class HttpServerTracer
+{
+public:
+ void Initialize(std::filesystem::path DataDir);
+ void WriteDebugPayload(std::string_view Filename, const std::span<const IoBuffer> Payload);
+
+private:
+ std::filesystem::path m_DataDir; // Application data directory
+ std::filesystem::path m_PayloadDir; // Request debugging payload directory
+};
+
+} // namespace zen