aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/servers/httptracer.h
blob: da72c79c9462ebd4dd8406a888d96c2e1326d0b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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