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

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)

成员函数说明

◆ CompleteWithExistingResponseData()

virtual void IBackgroundHttpRequest::CompleteWithExistingResponseData ( FBackgroundHttpResponsePtr  BackgroundResponse)
pure virtual

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.

在 FBackgroundHttpRequestImpl, FGenericPlatformBackgroundHttpRequest , 以及 FApplePlatformBackgroundHttpRequest 内被实现.

◆ GetRequestID()

virtual const FString & IBackgroundHttpRequest::GetRequestID ( ) const
pure virtual

Gets the associated RequestID for this BackgroundDownload.

返回
The RequestID

在 FBackgroundHttpRequestImpl 内被实现.

◆ GetRequestPriority()

virtual EBackgroundHTTPPriority IBackgroundHttpRequest::GetRequestPriority ( ) const
pure virtual

Gets the associated Requeset's Priority for Background Downloadings.

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

返回
The request Priority

在 FBackgroundHttpRequestImpl 内被实现.

◆ GetResponse()

virtual const FBackgroundHttpResponsePtr IBackgroundHttpRequest::GetResponse ( ) const
pure virtual

Get the associated Response

返回
the response

在 FBackgroundHttpRequestImpl 内被实现.

◆ GetURLList()

virtual const TArray< FString > & IBackgroundHttpRequest::GetURLList ( ) const
pure virtual

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

返回
List of URLs as FStrings

在 FBackgroundHttpRequestImpl 内被实现.

◆ HandleDelayedProcess()

virtual bool IBackgroundHttpRequest::HandleDelayedProcess ( )
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.

返回
if the request was successfully handled.

在 FBackgroundHttpRequestImpl , 以及 FGenericPlatformBackgroundHttpRequest 内被实现.

◆ OnProcessRequestComplete()

virtual FBackgroundHttpRequestCompleteDelegate & IBackgroundHttpRequest::OnProcessRequestComplete ( )
pure virtual

Delegate called when the request is complete.

See FBackgroundHttpRequestCompleteDelegate

在 FBackgroundHttpRequestImpl 内被实现.

◆ ProcessRequest()

virtual bool IBackgroundHttpRequest::ProcessRequest ( )
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.

返回
if the request was successfully started.

在 FBackgroundHttpRequestImpl 内被实现.

◆ SetCompleteNotification()

virtual void IBackgroundHttpRequest::SetCompleteNotification ( FBackgroundHttpNotificationObjectPtr  DownloadCompleteNotificationObject)
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

参数
DownloadCompleteDelegateObjectThe particular download complete delegate object

在 FBackgroundHttpRequestImpl 内被实现.

◆ SetRequestID()

virtual void IBackgroundHttpRequest::SetRequestID ( const FString &  NewRequestID)
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.

参数
NewRequestIDFString to set the Request ID to.

在 FBackgroundHttpRequestImpl 内被实现.

◆ SetRequestPriority()

virtual void IBackgroundHttpRequest::SetRequestPriority ( EBackgroundHTTPPriority  NewPriority)
pure virtual

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.

在 FBackgroundHttpRequestImpl 内被实现.

◆ SetURLAsList()

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

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()

在 FBackgroundHttpRequestImpl 内被实现.


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