engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FBackgroundHttpRequestImpl类 参考

Contains implementation of some common functions that don't have to vary between implementation 更多...

#include <BackgroundHttpRequestImpl.h>

+ 类 FBackgroundHttpRequestImpl 继承关系图:

Public 成员函数

virtual void CancelRequest () override
 Called to cancel a request that is still being processed
 
virtual void CompleteWithExistingResponseData (FBackgroundHttpResponsePtr BackgroundResponse) override
 Function used to complete an IHttpBackgroundRequest from an external source, passing it in a pre-existing response data. 更多...
 
virtual const FString & GetRequestID () const override
 Gets the associated RequestID for this BackgroundDownload. 更多...
 
virtual EBackgroundHTTPPriority GetRequestPriority () const override
 Gets the associated Requeset's Priority for Background Downloadings. 更多...
 
virtual const FBackgroundHttpResponsePtr GetResponse () const override
 Get the associated Response 更多...
 
virtual const TArray< FString > & GetURLList () const override
 Gets the current URL List that this background request is currently processing. 更多...
 
virtual bool HandleDelayedProcess () override
 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 () override
 Delegate called when the request is complete. 更多...
 
virtual FBackgroundHttpProgressUpdateDelegate & OnProgressUpdated () override
 Delegate called when the request has a progress update.
 
virtual void PauseRequest () override
 Called to pause a request that is still being processed
 
virtual bool ProcessRequest () override
 Called to begin processing the request. 更多...
 
virtual void ResumeRequest () override
 Called to resume a request that was previously paused
 
virtual void SetCompleteNotification (FBackgroundHttpNotificationObjectPtr DownloadCompleteNotificationObjectIn) override
 Sets an FHTTPRequestDownloadNotificationObject to be mapped to this HTTPRequest. 更多...
 
virtual void SetRequestID (const FString &NewRequestID) override
 Sets the associated RequestID for this BackgroundDownload. 更多...
 
virtual void SetRequestPriority (EBackgroundHTTPPriority NewPriority) override
 Sets the associated Requeset's Priority for Background Downloadings. 更多...
 
virtual void SetURLAsList (const TArray< FString > &URLs, int NumRetriesToAttempt) override
 Sets up a list of URLs to automatically fall through as each one fails. 更多...
 
- Public 成员函数 继承自 IBackgroundHttpRequest
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. 更多...
 

详细描述

Contains implementation of some common functions that don't have to vary between implementation

成员函数说明

◆ CompleteWithExistingResponseData()

virtual void FBackgroundHttpRequestImpl::CompleteWithExistingResponseData ( FBackgroundHttpResponsePtr  BackgroundResponse)
overridevirtual

Function used to complete an IHttpBackgroundRequest from an external source, passing it in a pre-existing response data.

参数
BackgroundReponse,ASharedRef to the already existing IHttpBackgroundResponse we want to base this tasks' Response off of.

实现了 IBackgroundHttpRequest.

被 FGenericPlatformBackgroundHttpRequest , 以及 FApplePlatformBackgroundHttpRequest 重载.

◆ GetRequestID()

virtual const FString & FBackgroundHttpRequestImpl::GetRequestID ( ) const
overridevirtual

Gets the associated RequestID for this BackgroundDownload.

返回
The RequestID

实现了 IBackgroundHttpRequest.

◆ GetRequestPriority()

virtual EBackgroundHTTPPriority FBackgroundHttpRequestImpl::GetRequestPriority ( ) const
overridevirtual

Gets the associated Requeset's Priority for Background Downloadings.

Where possible, we attempt to finish downloads in lowest-priority first order.

返回
The request Priority

实现了 IBackgroundHttpRequest.

◆ GetResponse()

virtual const FBackgroundHttpResponsePtr FBackgroundHttpRequestImpl::GetResponse ( ) const
overridevirtual

Get the associated Response

返回
the response

实现了 IBackgroundHttpRequest.

◆ GetURLList()

virtual const TArray< FString > & FBackgroundHttpRequestImpl::GetURLList ( ) const
overridevirtual

Gets the current URL List that this background request is currently processing.

返回
List of URLs as FStrings

实现了 IBackgroundHttpRequest.

◆ HandleDelayedProcess()

virtual bool FBackgroundHttpRequestImpl::HandleDelayedProcess ( )
overridevirtual

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.

返回
if the request was successfully handled.

实现了 IBackgroundHttpRequest.

被 FGenericPlatformBackgroundHttpRequest 重载.

◆ OnProcessRequestComplete()

virtual FBackgroundHttpRequestCompleteDelegate & FBackgroundHttpRequestImpl::OnProcessRequestComplete ( )
overridevirtual

Delegate called when the request is complete.

See FBackgroundHttpRequestCompleteDelegate

实现了 IBackgroundHttpRequest.

◆ ProcessRequest()

virtual bool FBackgroundHttpRequestImpl::ProcessRequest ( )
overridevirtual

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.

返回
if the request was successfully started.

实现了 IBackgroundHttpRequest.

◆ SetCompleteNotification()

virtual void FBackgroundHttpRequestImpl::SetCompleteNotification ( FBackgroundHttpNotificationObjectPtr  DownloadCompleteNotificationObject)
overridevirtual

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

参数
DownloadCompleteDelegateObjectThe particular download complete delegate object

实现了 IBackgroundHttpRequest.

◆ SetRequestID()

virtual void FBackgroundHttpRequestImpl::SetRequestID ( const FString &  NewRequestID)
overridevirtual

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.

参数
NewRequestIDFString to set the Request ID to.

实现了 IBackgroundHttpRequest.

◆ SetRequestPriority()

virtual void FBackgroundHttpRequestImpl::SetRequestPriority ( EBackgroundHTTPPriority  NewPriority)
overridevirtual

Sets the associated Requeset's Priority for Background Downloadings.

Where possible, we attempt to finish downloads in lowest-priority first order.

参数
uint32describing priority of this download. Lower happens first and thus 0 is the highest priority.

实现了 IBackgroundHttpRequest.

◆ SetURLAsList()

virtual void FBackgroundHttpRequestImpl::SetURLAsList ( const TArray< FString > &  URLs,
int  NumRetriesToAttempt 
)
overridevirtual

Sets up a list of URLs to automatically fall through as each one fails.

Must be called before ProcessRequest.

参数
URLslist of URLs. Eg: download.epicgames.com/downloadfilehere.txt, download2.epicgames.com/downloadfilehere.txt, download3.epicgames/downloadfilehere.txt
NumRetriesToAttemptHow many times we want to fall through and try different URLS. Loops back to the beginning of the list if NumRetries > URLs.Num()

实现了 IBackgroundHttpRequest.


该类的文档由以下文件生成: