send_and_read


Description:

public Bytes send_and_read (Message msg, Cancellable? cancellable = null) throws Error

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.

Parameters:

this

a Session

msg

a Message

cancellable

a Cancellable

Returns:

a Bytes, or null on error.