Message.setRequestBody

void setRequestBody(string contentType, gio.input_stream.InputStream stream, ptrdiff_t contentLength)

Set the request body of a #SoupMessage.

If content_type is null and stream 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
streama #GInputStream to read the request body from
contentLengththe byte length of stream or -1 if unknown