setRequestBody

fun setRequestBody(contentType: String? = null, stream: <Error class: unknown class>? = null, contentLength: Long)

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

contentType

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

stream

a #GInputStream to read the request body from

contentLength

the byte length of @stream or -1 if unknown