setRequestBodyFromBytes

fun setRequestBodyFromBytes(contentType: String? = null, bytes: <Error class: unknown class>? = null)

Set the request body of a #SoupMessage 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 @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