send_message


Description:

[ Version ( since = "3.46" ) ]
public async InputStream? send_message (Message message, int io_priority, void* prepare_data, Cancellable? cancellable, out string? out_certificate_pem, out TlsCertificateFlags out_certificate_errors) throws Error

Asynchronously sends the message.

Finish the call with send_message.end.

The prepare_data is a result of the prepare_message_send_sync and this function assumes ownership of it. The prepare_data cannot be used again after this call.

Parameters:

this

an SoupSession

message

a Message to send

io_priority

the I/O priority of the request, like DEFAULT

prepare_data

data returned from prepare_message_send_sync

cancellable

optional Cancellable object, or null

callback

the callback to invoke once the request is finished

user_data

user data for callback