RangesSpecifier
data class RangesSpecifier
Range specifier for partial content requests (RFC 2616 sec 14.35.1)
Constructors
RangesSpecifier(unit: RangeUnits, ranges: List<ContentRange>) RangesSpecifier( Range specifier for partial content requests (RFC 2616 sec 14.35.1) |
Properties
val ranges: List<ContentRange> a list of requested ranges (could be open or closed ranges) |
|
val unit: String range units, usually bytes |
Functions
fun isValid( Verify ranges |
|
Resolve and merge all overlapping and neighbours ranges Merges all overlapping and neighbours ranges. Currently gaps collapse is not supported but should be, one day. |
|
Merge all ranges into a single absolute long range |
|
fun toString(): String |