![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <OnDemandHttpClient.h>
Public Types | |
| using | FHttpTicketId = uint32 |
| using | FOnHttpResponse = TFunction< void(FMultiEndpointHttpClientResponse &&)> |
Public Member Functions | |
| UE_NONCOPYABLE (FMultiEndpointHttpClient) | |
| ~FMultiEndpointHttpClient () | |
| FHttpTicketId | Get (const FOnDemandHostGroup &HostGroup, FAnsiStringView RelativeUrl, FOnHttpResponse &&OnResponse) |
| FHttpTicketId | Get (const FOnDemandHostGroup &HostGroup, FAnsiStringView RelativeUrl, const FIoOffsetAndLength &ChunkRange, FOnHttpResponse &&OnResponse) |
| FHttpTicketId | Get (const FOnDemandHostGroup &HostGroup, FAnsiStringView RelativeUrl, const FIoOffsetAndLength &ChunkRange, TArray< FAnsiString > &&Headers, EMultiEndpointRequestFlags Flags, FOnHttpResponse &&OnResponse) |
| bool | Tick (int32 WaitTimeMs, uint32 MaxKiBPerSecond) |
| bool | Tick () |
| void | CancelRequest (FHttpTicketId TicketId) |
| void | UpdateConnections () |
Static Public Member Functions | |
| static TUniquePtr< FMultiEndpointHttpClient > | Create (const FMultiEndpointHttpClientConfig &Config) |
| static TIoStatusOr< FMultiEndpointHttpClientResponse > | Get (FAnsiStringView Url, const FMultiEndpointHttpClientConfig &Config) |
Todo - More documentation on the client behavior.
Retry policy: If a request fails then the client will retry it up to FMultiEndpointHttpClientConfig::MaxRetryCount times. The first retry attempt will use the primary host with each subsequent attempt cycling to the next host in the FOnDemandHostGroup. If the end of the group is reached with retries remaining then the cycle will begin again at the start of the group.
| using UE::IoStore::FMultiEndpointHttpClient::FOnHttpResponse = TFunction<void(FMultiEndpointHttpClientResponse&&)> |
| UE::IoStore::FMultiEndpointHttpClient::~FMultiEndpointHttpClient | ( | ) |
| void UE::IoStore::FMultiEndpointHttpClient::CancelRequest | ( | FHttpTicketId | TicketId | ) |
|
static |
| FMultiEndpointHttpClient::FHttpTicketId UE::IoStore::FMultiEndpointHttpClient::Get | ( | const FOnDemandHostGroup & | HostGroup, |
| FAnsiStringView | RelativeUrl, | ||
| const FIoOffsetAndLength & | ChunkRange, | ||
| FOnHttpResponse && | OnResponse | ||
| ) |
| FMultiEndpointHttpClient::FHttpTicketId UE::IoStore::FMultiEndpointHttpClient::Get | ( | const FOnDemandHostGroup & | HostGroup, |
| FAnsiStringView | RelativeUrl, | ||
| const FIoOffsetAndLength & | ChunkRange, | ||
| TArray< FAnsiString > && | Headers, | ||
| EMultiEndpointRequestFlags | Flags, | ||
| FOnHttpResponse && | OnResponse | ||
| ) |
| FMultiEndpointHttpClient::FHttpTicketId UE::IoStore::FMultiEndpointHttpClient::Get | ( | const FOnDemandHostGroup & | HostGroup, |
| FAnsiStringView | RelativeUrl, | ||
| FOnHttpResponse && | OnResponse | ||
| ) |
|
static |
Blocking method
|
inline |
Process the underlying http client.
| WaitTimeMs | How long (in milliseconds) should the underlying http client wait for poll events before returning. |
| MaxKiBPerSecond | The max amount of bandwidth that the underlying http client should use per second. A value of zero indicates that the bandwidth use should not be capped. |
| UE::IoStore::FMultiEndpointHttpClient::UE_NONCOPYABLE | ( | FMultiEndpointHttpClient | ) |
| void UE::IoStore::FMultiEndpointHttpClient::UpdateConnections | ( | ) |