send_async


Description:

[ Version ( since = "2.42" ) ]
public async InputStream send_async (Message msg, Cancellable? cancellable = null) throws Error

Asynchronously sends msg and waits for the beginning of a response.

When callback is called, then either msg has been sent, and its response headers received, or else an error has occurred. Call [method@Session.send_finish] to get a [class@Gio.InputStream] for reading the response body.

See [method@Session.send] for more details on the general semantics.

Parameters:

this

a Session

msg

a Message

cancellable

a Cancellable

callback

the callback to invoke

io_priority

the I/O priority of the request

user_data

data for callback