IHttpRequest::SetContent

Sets the content of the request (optional data).

Windows
MacOS
Linux

Override Hierarchy

IHttpRequest::SetContent()

FHttpRequestAdapterBase::SetContent()

References

Module

HTTP

Header

/Engine/Source/Runtime/Online/HTTP/Public/Interfaces/IHttpRequest.h

Include

#include "Interfaces/IHttpRequest.h"

Syntax

void SetContent
(
    TArray< uint8 > && ContentPayload
)

Remarks

Sets the content of the request (optional data). Usually only set for POST requests.

This version lets the API take ownership of the payload directly, helpful for larger payloads.

Parameters

Parameter

Description

ContentPayload

payload to set.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss