类的使用
cn.taketoday.http.HttpRange
使用HttpRange的程序包
程序包
说明
Contains a basic abstraction over client/server-side HTTP.
Provides the types that make up Infra functional web framework.
-
cn.taketoday.http中HttpRange的使用
修饰符和类型类说明private static classRepresents an HTTP/1.1 byte range, with a first and optional last position.private static classRepresents an HTTP/1.1 suffix byte range, with a number of suffix bytes.返回HttpRange的cn.taketoday.http中的方法修饰符和类型方法说明static HttpRangeHttpRange.createByteRange(long firstBytePos) Create anHttpRangefrom the given position to the end.static HttpRangeHttpRange.createByteRange(long firstBytePos, long lastBytePos) Create aHttpRangefrom the given fist to last position.static HttpRangeHttpRange.createSuffixRange(long suffixLength) Create anHttpRangethat ranges over the last given number of bytes.private static HttpRangeHttpRange.parseRange(String range) 返回变量类型为HttpRange的类型的cn.taketoday.http中的方法修饰符和类型方法说明HttpHeaders.getRange()Return the value of theRangeheader.HttpRange.parseRanges(String ranges) Parse the given, comma-separated string into a list ofHttpRangeobjects.类型变量类型为HttpRange的cn.taketoday.http中的方法参数修饰符和类型方法说明voidHttpHeaders.setRange(Collection<HttpRange> ranges) Sets the (new) value of theRangeheader.static List<cn.taketoday.core.io.ResourceRegion>HttpRange.toResourceRegions(List<HttpRange> ranges, cn.taketoday.core.io.Resource resource) Convert eachHttpRangeinto aResourceRegion, selecting the appropriate segment of the givenResourceusing HTTP Range information.static StringHttpRange.toString(Collection<HttpRange> ranges) Return a string representation of the given list ofHttpRangeobjects. -
cn.taketoday.web.handler.function中HttpRange的使用
返回变量类型为HttpRange的类型的cn.taketoday.web.handler.function中的方法