Navigation
API > API/Runtime > API/Runtime/HTTP > API/Runtime/HTTP/GenericPlatform > API/Runtime/HTTP/GenericPlatform/FHttpRequestCommon
- IHttpRequest::SetDelegateThreadPolicy()
- FHttpRequestCommon::SetDelegateThreadPolicy()
References
| Module | HTTP |
| Header | /Engine/Source/Runtime/Online/HTTP/Public/GenericPlatform/HttpRequestCommon.h |
| Include | #include "GenericPlatform/HttpRequestCommon.h" |
| Source | /Engine/Source/Runtime/Online/HTTP/Private/GenericPlatform/HttpRequestCommon.cpp |
virtual void SetDelegateThreadPolicy
(
EHttpRequestDelegateThreadPolicy InThreadPolicy
)
Remarks
Set thread policy about which thread to trigger the delegates, set by FHttpManager::SetRequestCompletedDelegate, IHttpRequest::OnStatusCodeReceived, IHttpRequest::OnHeaderReceived, IHttpRequest::OnRequestProgress64 and IHttpRequest::OnProcessRequestComplete.
Note that when set it as CompleteOnHttpThread, the thread to trigger delegates could be any thread depends on the implementation. User code should make the delegate thread-safe and shouldn't assume it's triggered by the thread where this request get created.
Parameters
| Name | Description |
|---|---|
| InThreadPolicy | The thread policy to indicate which thread to trigger the delegates |