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

toResourceRegions

open static fun toResourceRegions(ranges: MutableList<HttpRange>, resource: Resource): MutableList<ResourceRegion>

Convert each HttpRange into a ResourceRegion, selecting the appropriate segment of the given Resource using HTTP Range information.

Parameters

ranges - the list of ranges

resource - the resource to select the regions from

Return
the list of regions for the given resource

Since
4.3