Session.sendAndReadAsync
void sendAndReadAsync(soup.message.Message msg, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously sends msg and reads the response body.
When callback is called, then either msg has been sent, and its response body read, or else an error has occurred. This function should only be used when the resource to be retrieved is not too long and can be stored in memory. Call [soup.session.Session.sendAndReadFinish] to get a [glib.bytes.Bytes] with the response body.
See [soup.session.Session.send] for more details on the general semantics.
Parameters
msg | a #SoupMessage |
ioPriority | the I/O priority of the request |
cancellable | a #GCancellable |
callback | the callback to invoke |