Navigation
API > API/Runtime > API/Runtime/HTTP > API/Runtime/HTTP/GenericPlatform > API/Runtime/HTTP/GenericPlatform/FHttpRequestCommon
- IHttpRequest::SetResponseBodyReceiveStream()
- FHttpRequestCommon::SetResponseBodyReceiveStream()
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 bool SetResponseBodyReceiveStream
(
TSharedRef < FArchive > Stream
)
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 |