spring-framework / org.springframework.http / HttpRange / parseRanges

parseRanges

open static fun parseRanges(@Nullable ranges: String): MutableList<HttpRange>

Parse the given, comma-separated string into a list of HttpRange objects.

This method can be used to parse an Range header.

Parameters

ranges - the string to parse

Exceptions

IllegalArgumentException - if the string cannot be parsed

Return
the list of ranges