Session.sendAsync

void sendAsync(soup.message.Message msg, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

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 [soup.session.Session.sendFinish] to get a [gio.input_stream.InputStream] for reading the response body.

See [soup.session.Session.send] for more details on the general semantics.

Parameters

msga #SoupMessage
ioPrioritythe I/O priority of the request
cancellablea #GCancellable
callbackthe callback to invoke