Lesson 62 - Parsing the MetaData
This commit is contained in:
11
Source/DedicatedServers/Private/UI/HTTP/HTTPRequestTypes.cpp
Normal file
11
Source/DedicatedServers/Private/UI/HTTP/HTTPRequestTypes.cpp
Normal 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);
|
||||
}
|
||||
27
Source/DedicatedServers/Private/UI/HTTP/HTTPRequestTypes.h
Normal file
27
Source/DedicatedServers/Private/UI/HTTP/HTTPRequestTypes.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user