get_content_length


Description:

public ssize_t get_content_length ()

Gets the length (in bytes) of the file being downloaded.

If the Content-Length header has not yet been received from the server, -1 will be returned.

Parameters:

this

a DownloadStream

Returns:

the content length of the file being downloaded, or -1




2022 vala-language.org