Message.setRequestBodyFromBytes

void setRequestBodyFromBytes(string contentType = null, glib.bytes.Bytes bytes = null)

Set the request body of a #SoupMessage from [glib.bytes.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 msg is restarted (in case of redirection or authentication).

Parameters

contentTypeMIME Content-Type of the body, or null if unknown
bytesa #GBytes with the request body data