HttpRequest.data Property

Parent Object: HttpRequest
Defined in namespace "adsk::core" and the header file is <Core/Application/HttpRequest.h>

Description

Gets and sets the body data to send with this request.

Syntax

"httpRequest_var" is a variable referencing a HttpRequest object.

# Get the value of the property.
propertyValue = httpRequest_var.data

# Set the value of the property.
httpRequest_var.data = propertyValue
"httpRequest_var" is a variable referencing a HttpRequest object.
#include <Core/Application/HttpRequest.h>

// Get the value of the property.
string propertyValue = httpRequest_var->data();

// Set the value of the property, where value_var is a string.
bool returnValue = httpRequest_var->data(value_var);

Property Value

This is a read/write property whose value is a string.

Version

Introduced in version January 2024