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

toResourceRegion

open fun toResourceRegion(resource: Resource): ResourceRegion

Turn a Resource into a ResourceRegion using the range information contained in the current HttpRange.

Parameters

resource - the Resource to select the region from

Return
the selected region of the given Resource

Since
4.3