[ Version ( since = "1.5.0" ) ]
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 [method@Client.set_user_agent] function should be called before this method is used.
You must have called [method@Client.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 [ method@Client.set_main_context].
| this |
a Client |
| url |
the remote URL |
| payload |
payload string |
| signature |
signature string |
| flags |
download flags, e.g. fwupd_client_download_flag_none |
| cancellable |
optional Cancellable |
| callback |
the function to run on completion |
| callback_data |
the data to pass to |