FManager

Syntax

class FManager

Variables

Name Description

Protected variable

FRandomFailureR ...

 

RandomFailureRate

Default configuration for the retry system.

Protected variable

TArray < FHttpRe ...

 

RequestList

Protected variable

FRetryLimitCoun ...

 

RetryLimitCountDefault

Protected variable

FRetryTimeoutRe ...

 

RetryTimeoutRelativeSecondsDefault

Constructors

Name Description

Public function

FManager

(
    const FRetryLimitCountSetting & InR...,
    const FRetryTimeoutRelativeSecondsS ...
)

FManager .

Functions

Name Description

Public function

void

 

BlockUntilFlushed

(
    float TimeoutSec
)

Protected function

void

 

CancelRequest

(
    TSharedRef < FRequest >& HttpReques...
)

Protected function

bool

 

CanRetry

(
    const FHttpRetryRequestEntry & Http...
)

Public function

TSharedRef < ...

 

CreateRequest

(
    const FRetryLimitCountSetting & InR...,
    const FRetryTimeoutRelativeSecondsS ...,
    const FRetryResponseCodes & InRetry...,
    const FRetryVerbs & InRetryVerbs,
    const FRetryDomainsPtr & InRetryDom...
)

Create a new http request with retries

Protected function

float

 

GetLockoutPeriodSeconds

(
    const FHttpRetryRequestEntry & Http...
)

Protected function

bool

 

HasTimedOut

(
    const FHttpRetryRequestEntry & Http...,
    const double NowAbsoluteSeconds
)

Protected function

bool

 

ProcessRequest

(
    TSharedRef < FRequest >& HttpReques...
)

Public function

void

 

SetDefaultRetryLimit

(
    uint32 Value
)

Public function

void

 

SetRandomFailureRate

(
    float Value
)

Protected function

bool

 

ShouldRetry

(
    const FHttpRetryRequestEntry & Http...
)

Public function

bool

 

Update

(
    uint32 * FileCount,
    uint32 * FailingCount,
    uint32 * FailedCount,
    uint32 * CompletedCount
)

Updates the entries in the list of retry requests.

Classes

Name

Description

Protected struct

FHttpRetryRequestEntry

References

Module

HTTP

Header

Runtime/Online/HTTP/Public/HttpRetrySystem.h