Scoop API

scoop:scoop.http.client:0.1.0

HttpDownloadResult

class HttpDownloadResult

source · line 63
public
public class HttpDownloadResult internal constructor(
    /**
     * The committed destination path.
     */
    public val path: Path,
    /**
         * The final response URL.
         */
    public val url: Url,
    /**
         * The successful final response head.
         */
    public val head: HttpResponseHead,
    /**
     * Complete response trailers after body consumption.
     */
    public val trailers: Array<HttpField>,
    /**
         * The complete committed file byte count.
         */
    public val byteCount: Long,
    /**
         * Bytes reused from the previous partial download.
         */
    public val resumedBytes: Long = 0L
)

A completed download with committed path, final response metadata, total bytes, and reused-prefix count.

property byteCount

source · line 83
public
public val byteCount: Long

get: public read-only

The complete committed file byte count.

property path

source · line 67
public
public val path: Path

get: public read-only

The committed destination path.

property resumedBytes

source · line 87
public
public val resumedBytes: Long = 0L

get: public read-only

Bytes reused from the previous partial download.

property trailers

source · line 79
public
public val trailers: Array<HttpField>

get: public read-only

Complete response trailers after body consumption.

property url

source · line 71
public
public val url: Url

get: public read-only

The final response URL.