set_request_body_from_bytes


Description:

public void set_request_body_from_bytes (string? content_type, Bytes? bytes)

Set the request body of a Message from [struct@GLib.

Bytes].

If content_type is null and bytes is not null the Content-Type header will not be changed if present. The request body needs to be set again in case this is restarted (in case of redirection or authentication).

Parameters:

this

the message

content_type

MIME Content-Type of the body, or null if unknown

bytes

a Bytes with the request body data




2022 vala-language.org