Navigation
API > API/Runtime > API/Runtime/HTTP > API/Runtime/HTTP/IHttpRequest
Description
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.
Derived Overrides
| Name | SetDelegateThreadPolicy |
| Type | function |
| Header File | /Engine/Source/Runtime/Online/HTTP/Public/Interfaces/IHttpRequest.h |
| Include Path | #include "Interfaces/IHttpRequest.h" |
void SetDelegateThreadPolicy
(
EHttpRequestDelegateThreadPolicy InThreadPolicy
)
Parameters
| Name | Remarks |
|---|---|
| InThreadPolicy | The thread policy to indicate which thread to trigger the delegates |