sendAndRead

open fun sendAndRead(msg: Message, cancellable: <Error class: unknown class>? = null): <Error class: unknown class><<Error class: unknown class>>

Synchronously sends @msg and reads the response body.

On success, a struct@GLib.Bytes will be returned with the response body. This function should only be used when the resource to be retrieved is not too long and can be stored in memory.

See method@Session.send for more details on the general semantics.

Return

a #GBytes, or null on error.

Parameters

msg

a #SoupMessage

cancellable

a #GCancellable