Navigation
API > API/Runtime > API/Runtime/HTTP > API/Runtime/HTTP/Interfaces > API/Runtime/HTTP/Interfaces/IHttpRequest
- IHttpRequest::SetResponseBodyReceiveStream()
- FHttpRequestAdapterBase::SetResponseBodyReceiveStream()
References
| Module | HTTP |
| Header | /Engine/Source/Runtime/Online/HTTP/Public/Interfaces/IHttpRequest.h |
| Include | #include "Interfaces/IHttpRequest.h" |
bool SetResponseBodyReceiveStream
&40;
TSharedRef< FArchive > Stream
&41;
Remarks
Sets the stream to receive the response body. Make sure to handle the cleanup of stream when Serialize generated error(Stream->GetError returns true after Stream->Serialize call), 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 Stream->Serialize will be called from another thread other than the game thread True if the stream can be used. False otherwise.
Parameters
| Name | Description |
|---|---|
| Stream | will be used to receive the response body |