upload_bytes


Description:

[ Version ( since = "1.4.5" ) ]
public Bytes upload_bytes (string url, string payload, string? signature, ClientUploadFlags flags, Cancellable? cancellable = null) throws Error

Uploads data to a remote server.

The set_user_agent function should be called before this method is used.

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

Returns:

response data, or null for error