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

msga #SoupMessage
cancellablea #GCancellable

Returns

a #GBytes, or null on error.

Throws

[ErrorWrap]