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 [[email protected]] 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 [[email protected]] for more details on the general semantics.

Parameters:

this

a Session

msg

a Message

cancellable

a Cancellable

Returns:

a Bytes, or null on error.




2022 vala-language.org