Session.sendAsync

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

msg soup.message.Message

a #SoupMessage

ioPriority int

the I/O priority of the request

cancellable gio.cancellable.Cancellable

a #GCancellable

callback gio.types.AsyncReadyCallback

the callback to invoke