Interface for Http requests (created using FHttpFactory) 更多...
#include <IBackgroundHttpRequest.h>
类 IBackgroundHttpRequest 继承关系图:Public 成员函数 | |
| virtual void | CancelRequest ()=0 |
| Called to cancel a request that is still being processed | |
| virtual void | CompleteWithExistingResponseData (FBackgroundHttpResponsePtr BackgroundResponse)=0 |
| Function used to complete an IHttpBackgroundRequest from an external source, passing it in a pre-existing response data. 更多... | |
| virtual const FString & | GetRequestID () const =0 |
| Gets the associated RequestID for this BackgroundDownload. 更多... | |
| virtual EBackgroundHTTPPriority | GetRequestPriority () const =0 |
| Gets the associated Requeset's Priority for Background Downloadings. 更多... | |
| virtual const FBackgroundHttpResponsePtr | GetResponse () const =0 |
| Get the associated Response 更多... | |
| virtual const TArray< FString > & | GetURLList () const =0 |
| Gets the current URL List that this background request is currently processing. 更多... | |
| virtual bool | HandleDelayedProcess ()=0 |
| 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. 更多... | |
| virtual FBackgroundHttpRequestCompleteDelegate & | OnProcessRequestComplete ()=0 |
| Delegate called when the request is complete. 更多... | |
| virtual FBackgroundHttpProgressUpdateDelegate & | OnProgressUpdated ()=0 |
| Delegate called when the request has a progress update. | |
| virtual void | PauseRequest ()=0 |
| Called to pause a request that is still being processed | |
| virtual bool | ProcessRequest ()=0 |
| Called to begin processing the request. 更多... | |
| virtual void | ResumeRequest ()=0 |
| Called to resume a request that was previously paused | |
| virtual void | SetCompleteNotification (FBackgroundHttpNotificationObjectPtr DownloadCompleteNotificationObject)=0 |
| Sets an FHTTPRequestDownloadNotificationObject to be mapped to this HTTPRequest. 更多... | |
| virtual void | SetRequestID (const FString &NewRequestID)=0 |
| Sets the associated RequestID for this BackgroundDownload. 更多... | |
| virtual void | SetRequestPriority (EBackgroundHTTPPriority NewPriority)=0 |
| Sets the associated Requeset's Priority for Background Downloadings. 更多... | |
| virtual void | SetURLAsList (const TArray< FString > &URLs, int NumRetriesToAttempt)=0 |
| Sets up a list of URLs to automatically fall through as each one fails. 更多... | |
| virtual | ~IBackgroundHttpRequest ()=default |
| Destructor for overrides | |
Public 成员函数 继承自 TSharedFromThis< IBackgroundHttpRequest, ESPMode::ThreadSafe > | |
| TSharedRef< IBackgroundHttpRequest, Mode > | AsShared () |
| Provides access to a shared reference to this object. 更多... | |
| TSharedRef< IBackgroundHttpRequest const, Mode > | AsShared () const |
| Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多... | |
| FORCEINLINE bool | DoesSharedInstanceExist () const |
| Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多... | |
| FORCEINLINE void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const |
| INTERNAL USE ONLY – Do not call this method. 更多... | |
| FORCEINLINE void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const |
| INTERNAL USE ONLY – Do not call this method. 更多... | |
额外继承的成员函数 | |
Protected 成员函数 继承自 TSharedFromThis< IBackgroundHttpRequest, ESPMode::ThreadSafe > | |
| FORCEINLINE TSharedFromThis & | operator= (TSharedFromThis const &) |
| Hidden stub assignment operator | |
| TSharedFromThis () | |
| Hidden stub constructor | |
| TSharedFromThis (TSharedFromThis const &) | |
| Hidden stub copy constructor | |
| ~TSharedFromThis () | |
| Hidden destructor | |
静态 Protected 成员函数 继承自 TSharedFromThis< IBackgroundHttpRequest, ESPMode::ThreadSafe > | |
| static FORCEINLINE TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
| Provides access to a shared reference to an object, given the object's 'this' pointer. 更多... | |
| static FORCEINLINE TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| Provides access to a shared reference to an object, given the object's 'this' pointer. 更多... | |
Interface for Http requests (created using FHttpFactory)
|
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. |
在 FBackgroundHttpRequestImpl, FGenericPlatformBackgroundHttpRequest , 以及 FApplePlatformBackgroundHttpRequest 内被实现.
|
pure virtual |
Gets the associated RequestID for this BackgroundDownload.
在 FBackgroundHttpRequestImpl 内被实现.
|
pure virtual |
Gets the associated Requeset's Priority for Background Downloadings.
Where possible, we attempt to finish downloads in lowest-priority first order.
在 FBackgroundHttpRequestImpl 内被实现.
|
pure virtual |
Gets the current URL List that this background request is currently processing.
在 FBackgroundHttpRequestImpl 内被实现.
|
pure virtual |
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.
在 FBackgroundHttpRequestImpl , 以及 FGenericPlatformBackgroundHttpRequest 内被实现.
|
pure virtual |
Delegate called when the request is complete.
See FBackgroundHttpRequestCompleteDelegate
在 FBackgroundHttpRequestImpl 内被实现.
|
pure virtual |
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.
在 FBackgroundHttpRequestImpl 内被实现.
|
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 |
在 FBackgroundHttpRequestImpl 内被实现.
|
pure virtual |
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. |
在 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. |
在 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() |
在 FBackgroundHttpRequestImpl 内被实现.