get_content_length


Description:

public ssize_t get_content_length ()

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

If the <literal>Content-Length</literal> header has not yet been received from the server, <code class="literal">-1 </code> will be returned.

Parameters:

this

a DownloadStream

Returns:

the content length of the file being downloaded, or <code class="literal">-1</code>