Navigation
API > API/Runtime > API/Runtime/BackgroundHTTP > API/Runtime/BackgroundHTTP/FGenericPlatformBackgroundHttpRe-
In the default implementation we actually use HTTPRequests instead of HttpBackgroundRequests. This class handles wrapping some of the HttpBackgroundRequest only functionality (such as request lists and notification objects) so they work with non-background HttpRequests
| Name | FGenericPlatformBackgroundHttpWrapper |
| Type | class |
| Header File | /Engine/Source/Runtime/Online/BackgroundHTTP/Public/GenericPlatform/GenericPlatformBackgroundHttpRequest.h |
| Include Path | #include "GenericPlatform/GenericPlatformBackgroundHttpRequest.h" |
Syntax
class FGenericPlatformBackgroundHttpWrapper
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Don't want to provide default implementation. Must provide an IHttpBackgroundRequest to wrap in public constructor. | GenericPlatform/GenericPlatformBackgroundHttpRequest.h | ||
FGenericPlatformBackgroundHttpWrapper
(
FBackgroundHttpRequestPtr Request, |
GenericPlatform/GenericPlatformBackgroundHttpRequest.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FGenericPlatformBackgroundHttpWrapper() |
GenericPlatform/GenericPlatformBackgroundHttpRequest.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentRetryNumber | int32 | Tracking retry number we are currently on. | GenericPlatform/GenericPlatformBackgroundHttpRequest.h | |
| HttpRequest | TSharedPtr< IHttpRequest, ESPMode::ThreadSafe > | Current Http Request being processed by this wrapper. | GenericPlatform/GenericPlatformBackgroundHttpRequest.h | |
| LastProgressUpdateBytes | uint64 | How many bytes we had last time we sent progress updates. | GenericPlatform/GenericPlatformBackgroundHttpRequest.h | |
| MaxRetries | int32 | Max number of retries we should do. | GenericPlatform/GenericPlatformBackgroundHttpRequest.h | |
| OriginalRequest | TWeakPtr< class IBackgroundHttpRequest, ESPMode::ThreadSafe > | Reference to the creating request. | GenericPlatform/GenericPlatformBackgroundHttpRequest.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void HttpRequestComplete
(
FHttpRequestPtr HttpRequestIn, |
GenericPlatform/GenericPlatformBackgroundHttpRequest.h | ||
void MakeRequest() |
GenericPlatform/GenericPlatformBackgroundHttpRequest.h |