send_and_read
Description:
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 |
Returns:
a Bytes, or null on error. |