![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IBackgroundHttpRequest.h>
Inheritance diagram for IBackgroundHttpRequest:Additional Inherited Members | |
Protected Member Functions inherited from TSharedFromThis< IBackgroundHttpRequest, ESPMode::ThreadSafe > | |
| TSharedFromThis () | |
| TSharedFromThis (TSharedFromThis const &) | |
| UE_FORCEINLINE_HINT TSharedFromThis & | operator= (TSharedFromThis const &) |
| ~TSharedFromThis () | |
Static Protected Member Functions inherited from TSharedFromThis< IBackgroundHttpRequest, ESPMode::ThreadSafe > | |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
Interface for Http requests (created using FHttpFactory)
|
virtualdefault |
Destructor for overrides
Called to cancel a request that is still being processed
Implemented in FBackgroundHttpRequestImpl, and FGenericPlatformBackgroundHttpRequest.
|
pure virtual |
Function used to complete an IHttpBackgroundRequest from an external source, passing it in a pre-existing response data.
| BackgroundReponse,A | SharedRef to the already existing IHttpBackgroundResponse we want to base this tasks' Response off of. |
Implemented in FBackgroundHttpRequestImpl, and FGenericPlatformBackgroundHttpRequest.
Returns debug text for download screen to help troubleshoot download issues
Reimplemented in FApplePlatformBackgroundHttpRequest.
Returns expected result size for the request, set by SetExpectedResultSize.
Reimplemented in FBackgroundHttpRequestImpl.
|
pure virtual |
Gets the associated RequestID for this BackgroundDownload.
Implemented in FBackgroundHttpRequestImpl.
|
pure virtual |
Gets the associated Requeset's Priority for Background Downloadings. Where possible, we attempt to finish downloads in lowest-priority first order.
Implemented in FBackgroundHttpRequestImpl.
|
pure virtual |
Gets the current URL List that this background request is currently processing.
Implemented in FBackgroundHttpRequestImpl.
Called by certain platform's implementation when we have to wait for the BackgroundHttpManager / PlatformBackgroundHttp to do some work before we can finish our ProcessRequest call. Should only be called by different platform layers.
NOTE: Should really only be called by the BackgroundHttpManager! You are probably looking for ProcessRequest.
Implemented in FBackgroundHttpRequestImpl, and FGenericPlatformBackgroundHttpRequest.
|
pure virtual |
Delegate called when the request is complete. See FBackgroundHttpRequestCompleteDelegate
Implemented in FBackgroundHttpRequestImpl.
|
pure virtual |
Delegate called when the request has a progress update.
Implemented in FBackgroundHttpRequestImpl.
|
pure virtual |
Delegate called when the request's metrics were calculated
Implemented in FBackgroundHttpRequestImpl.
|
pure virtual |
Delegate called when the request's extended metrics were calculated
Implemented in FBackgroundHttpRequestImpl.
Called to pause a request that is still being processed
Implemented in FBackgroundHttpRequestImpl, and FApplePlatformBackgroundHttpRequest.
Called to begin processing the request. OnProcessRequestComplete delegate is always called when the request completes or on error if it is bound. A request can be re-used but not while still being processed.
Implemented in FBackgroundHttpRequestImpl.
Called to resume a request that was previously paused
Implemented in FBackgroundHttpRequestImpl, and FApplePlatformBackgroundHttpRequest.
|
pure virtual |
Sets an FHTTPRequestDownloadNotificationObject to be mapped to this HTTPRequest. This request will keep the particular FHttpRequestDownloadNotificationObject reference until it completes. To use this function make sure you keep a reference to the supplied DownloadNotificationObject until you have created all the different IHTTPRequest that you would like to use it. Then delete your reference. Once all references are removed (by each Request completing) a callback set on the DownloadCompleteDelegateObject will be called
| DownloadCompleteDelegateObject | The particular download complete delegate object |
Implemented in FBackgroundHttpRequestImpl.
|
inlinevirtual |
Sets expected result size for the request, might be used by the implementation to check file size before invoking completion notification. Must be called before ProcessRequest.
| ExpectedSize | expected file size in bytes, 0 to disable the check. Default value is 0. |
Reimplemented in FBackgroundHttpRequestImpl.
|
inlinevirtual |
Set metrics for analytics event
Reimplemented in FBackgroundHttpRequestImpl.
|
inlinevirtual |
Set extended metrics for analytics event
Reimplemented in FBackgroundHttpRequestImpl.
Sets the associated RequestID for this BackgroundDownload. Useful as we associate a background downlaod with multiple URLs, so this provides an easier way to identify the download with 1 string instead of checking multiple URLs.
| NewRequestID | FString to set the Request ID to. |
Implemented in FBackgroundHttpRequestImpl.
|
pure virtual |
Sets the associated Requeset's Priority for Background Downloadings. Where possible, we attempt to finish downloads in lowest-priority first order.
| uint32 | describing priority of this download. Lower happens first and thus 0 is the highest priority. |
Implemented in FBackgroundHttpRequestImpl.
|
pure virtual |
Sets up a list of URLs to automatically fall through as each one fails. Must be called before ProcessRequest.
| URLs | list of URLs. Eg: download.epicgames.com/downloadfilehere.txt, download2.epicgames.com/downloadfilehere.txt, download3.epicgames/downloadfilehere.txt |
| NumRetriesToAttempt | How many times we want to fall through and try different URLS. Loops back to the beginning of the list if NumRetries > URLs.Num() |
Implemented in FBackgroundHttpRequestImpl.