getContentLength

abstract fun getContentLength(): Long

获取服务器报告的文件大小,单位为字节(bytes)。

注意: 如果服务器没有在响应头中提供 Content-Length, 这个值可能是 -1,表示文件大小未知。

Return

文件的大小(字节)Long