Navigation
API > API/Runtime > API/Runtime/HTTP > API/Runtime/HTTP/IHttpRequest
Description
Sets the delegate to receive the response body. Make sure to handle the cleanup of received data when failed to process the data(StreamDelegate return false), this http request will fail and quit.
NOTE: Once set, the data will no longer be cached in response, IHttpResponse::GetContent() and IHttpResponse::GetContentAsString() will return empty result. The delegate will be called from another thread other than the game thread
| Name | SetResponseBodyReceiveStreamDelegateV2 |
| Type | function |
| Header File | /Engine/Source/Runtime/Online/HTTP/Public/Interfaces/IHttpRequest.h |
| Include Path | #include "Interfaces/IHttpRequest.h" |
| Source | /Engine/Source/Runtime/Online/HTTP/Private/Interfaces/IHttpRequest.cpp |
bool SetResponseBodyReceiveStreamDelegateV2
(
FHttpRequestStreamDelegateV2 StreamDelegate
)
True if the delegate can be used. False otherwise.
Parameters
| Name | Remarks |
|---|---|
| StreamDelegate | will be used to receive the response body |