util_set_message_request_body_from_data


Description:

[ Version ( since = "3.46" ) ]
public static void util_set_message_request_body_from_data (Message message, bool create_copy, string? content_type, void* data, ssize_t length, DestroyNotify? free_func)

Sets the request body of the message from the data of the length, with optional content_type .

The function makes sure the message request body is set again when the message is restarted.

When the create_copy is true, the free_func should be null.

Parameters:

message

a Message

create_copy

whether to create copy of the data

content_type

optional Content-Type of the data, or null

data

the request body data

length

length of the data

free_func

a free function for the data, or null




2022 vala-language.org