upload_bytes_async
Description:
[ Version ( since = "1.5.0" ) ]
public async Bytes upload_bytes_async (string url, string payload, string? signature, ClientUploadFlags flags, Cancellable? cancellable) throws Error
public async Bytes upload_bytes_async (string url, string payload, string? signature, ClientUploadFlags flags, Cancellable? cancellable) throws Error
Uploads data to a remote server.
The set_user_agent function should be called before this method is used.
You must have called connect_async on this before using this method.
NOTE: This method is thread-safe, but progress signals will be emitted in the global default main context, if not explicitly set with set_main_context.
Parameters:
this |
A Client |
url |
the remote URL |
payload |
payload string |
signature |
signature string |
flags |
ClientDownloadFlags, e.g. fwupd_client_download_flag_none |
cancellable |
the Cancellable, or null |
callback |
the function to run on completion |
callback_data |
the data to pass to |