Lesson 62 - Parsing the MetaData

This commit is contained in:
Norman Lansing
2026-03-16 06:30:18 -04:00
parent 8d6f3f68f1
commit 7f154aa6f9
5 changed files with 49 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
#include "UI/HTTP/HTTPRequestTypes.h"
#include "DedicatedServers/DedicatedServers.h"
void FDS_MetaData::Dump() const
{
UE_LOGFMT(LogDedicatedServers, Log, "MetaData:");
UE_LOGFMT(LogDedicatedServers, Log, "httpStatusCode: {httpStatusCode}", httpStatusCode);
UE_LOGFMT(LogDedicatedServers, Log, "requestId: {requestId}", requestId);
UE_LOGFMT(LogDedicatedServers, Log, "attemps: {attempts}", attempts);
UE_LOGFMT(LogDedicatedServers, Log, "totalRetryDelay: {totalRetryDelay}", totalRetryDelay);
}

View File

@@ -0,0 +1,27 @@
#pragma once
// Because this is in the private section is is still usable by the DedicatedServer Module, but not outside of the module.
#include "HTTPRequestTypes.generated.h"
USTRUCT()
struct FDS_MetaData
{
GENERATED_BODY()
public:
UPROPERTY()
int32 httpStatusCode{};
UPROPERTY()
FString requestId{};
UPROPERTY()
int32 attempts{};
UPROPERTY()
double totalRetryDelay{};
void Dump() const;
};