Session.sendAndRead

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 soup.message.Message

a #SoupMessage

cancellable gio.cancellable.Cancellable

a #GCancellable

Return Value

Type: glib.bytes.Bytes

a #GBytes, or null on error.