Session.sendAndRead
glib.bytes.Bytes sendAndRead(soup.message.Message msg, gio.cancellable.Cancellable cancellable = null)Synchronously sends msg and reads the response body.
On success, a [glib.bytes.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 [soup.session.Session.send] for more details on the general semantics.
Parameters
msg | a #SoupMessage |
cancellable | a #GCancellable |
Returns
a #GBytes, or null on error.
Throws
[ErrorWrap]