2019-12-26 14:45:42 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2019-05-10 12:24:40 -04:00
|
|
|
|
|
|
|
|
#include "HttpConnectionContext.h"
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
|
|
|
|
|
FHttpConnectionContext::FHttpConnectionContext()
|
|
|
|
|
{
|
|
|
|
|
ErrorBuilder.SetAutoEmitLineTerminator(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FHttpConnectionContext::~FHttpConnectionContext()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FHttpConnectionContext::AddElapsedIdleTime(float DeltaTime)
|
|
|
|
|
{
|
|
|
|
|
ElapsedIdleTime += DeltaTime;
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-16 00:21:28 -04:00
|
|
|
void FHttpConnectionContext::AddError(const FString& ErrorCodeStr, EHttpServerResponseCodes HttpErrorCode)
|
2019-05-10 12:24:40 -04:00
|
|
|
{
|
2019-05-16 00:21:28 -04:00
|
|
|
if (!ErrorBuilder.IsEmpty())
|
|
|
|
|
{
|
|
|
|
|
ErrorBuilder.AppendChar(TCHAR(' '));
|
|
|
|
|
}
|
|
|
|
|
ErrorBuilder.Append(ErrorCodeStr);
|
|
|
|
|
|
|
|
|
|
if (EHttpServerResponseCodes::Unknown != HttpErrorCode)
|
|
|
|
|
{
|
|
|
|
|
ErrorCode = HttpErrorCode;
|
|
|
|
|
}
|
2019-05-10 12:24:40 -04:00
|
|
|
}
|