range

val range: ByteRangeRequest? = null

If set, it defines the byte range to fetch from the resource body. If the resource cannot be partially fetched using byte ranges, fetch throws an Exception.

Note that this option differs from the HTTP Range header in how the end offset is defined. The range is up-to but not including the end offset. Thus reading the ByteRangeRequest(0, 100) translates to the HTTP header: "Range: bytes=0-99".