end

val end: Long? = null

The end of the range as a byte offset.

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 range 0-100 would return 100 bytes.

If not specified, the byte range ends at the end of the resource.