UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FHttpConnectionContext Struct Reference

#include <HttpConnectionContext.h>

+ Inheritance diagram for FHttpConnectionContext:

Public Member Functions

void AddElapsedIdleTime (float DeltaTime)
 
FORCEINLINE float GetElapsedIdleTime () const
 
FORCEINLINE EHttpServerResponseCodes GetErrorCode () const
 
FORCEINLINE const FString & GetErrorStr () const
 

Protected Member Functions

 FHttpConnectionContext ()
 
virtual ~FHttpConnectionContext ()
 
void AddError (const FString &ErrorCodeStr, EHttpServerResponseCodes ErrorCode=EHttpServerResponseCodes::Unknown)
 

Protected Attributes

float ElapsedIdleTime = 0.0f
 
EHttpServerResponseCodes ErrorCode = EHttpServerResponseCodes::Unknown
 
FStringOutputDevice ErrorBuilder
 

Constructor & Destructor Documentation

◆ FHttpConnectionContext()

FHttpConnectionContext::FHttpConnectionContext ( )
protected

Constructor

◆ ~FHttpConnectionContext()

FHttpConnectionContext::~FHttpConnectionContext ( )
protectedvirtual

Destructor

Member Function Documentation

◆ AddElapsedIdleTime()

void FHttpConnectionContext::AddElapsedIdleTime ( float  DeltaTime)

Adds to the context elapsed time

Parameters
DeltaTimeThe elapsed time (seconds) to add

◆ AddError()

void FHttpConnectionContext::AddError ( const FString &  ErrorCodeStr,
EHttpServerResponseCodes  ErrorCode = EHttpServerResponseCodes::Unknown 
)
protected

Adds the caller-supplied error to the context

Parameters
ErrorCodeThe machine-readable error code

◆ GetElapsedIdleTime()

FORCEINLINE float FHttpConnectionContext::GetElapsedIdleTime ( ) const
inline

Gets the elapsed time (seconds) since last activity

◆ GetErrorCode()

FORCEINLINE EHttpServerResponseCodes FHttpConnectionContext::GetErrorCode ( ) const
inline

Gets the respective error code

◆ GetErrorStr()

FORCEINLINE const FString & FHttpConnectionContext::GetErrorStr ( ) const
inline

Gets the cumulative error string

Member Data Documentation

◆ ElapsedIdleTime

float FHttpConnectionContext::ElapsedIdleTime = 0.0f
protected

Tracks time since last read/write activity

◆ ErrorBuilder

FStringOutputDevice FHttpConnectionContext::ErrorBuilder
protected

Tracks cumulative context errors

◆ ErrorCode

EHttpServerResponseCodes FHttpConnectionContext::ErrorCode = EHttpServerResponseCodes::Unknown
protected

Tracks the respective ErrorCode


The documentation for this struct was generated from the following files: