33 lines
685 B
C++
33 lines
685 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "HttpConnectionContext.h"
|
|
#include "CoreMinimal.h"
|
|
|
|
FHttpConnectionContext::FHttpConnectionContext()
|
|
{
|
|
ErrorBuilder.SetAutoEmitLineTerminator(true);
|
|
}
|
|
|
|
FHttpConnectionContext::~FHttpConnectionContext()
|
|
{
|
|
}
|
|
|
|
void FHttpConnectionContext::AddElapsedIdleTime(float DeltaTime)
|
|
{
|
|
ElapsedIdleTime += DeltaTime;
|
|
}
|
|
|
|
void FHttpConnectionContext::AddError(const FString& ErrorCodeStr, EHttpServerResponseCodes HttpErrorCode)
|
|
{
|
|
if (!ErrorBuilder.IsEmpty())
|
|
{
|
|
ErrorBuilder.AppendChar(TCHAR(' '));
|
|
}
|
|
ErrorBuilder.Append(ErrorCodeStr);
|
|
|
|
if (EHttpServerResponseCodes::Unknown != HttpErrorCode)
|
|
{
|
|
ErrorCode = HttpErrorCode;
|
|
}
|
|
}
|