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
contentType | MIME Content-Type of the body, or null if unknown |
bytes | a #GBytes with the request body data |