类的使用
org.springframework.http.HttpRange
使用HttpRange的程序包 程序包 说明 org.springframework.http Contains a basic abstraction over client/server-side HTTP.org.springframework.mock.http.server.reactive Mock implementations of reactive HTTP server contracts.org.springframework.web.reactive.function.server Provides the types that make up Spring's functional web framework for Reactive environments.org.springframework.web.reactive.function.server.support Classes supporting theorg.springframework.web.reactive.function.server
package.org.springframework.web.servlet.function Provides the types that make up Spring's functional web framework for Servlet environments.org.springframework.http中HttpRange的使用
返回HttpRange的org.springframework.http中的方法 修饰符和类型 方法 说明 static HttpRange
HttpRange. createByteRange(long firstBytePos)
Create anHttpRange
from the given position to the end.static HttpRange
HttpRange. createByteRange(long firstBytePos, long lastBytePos)
Create aHttpRange
from the given fist to last position.static HttpRange
HttpRange. createSuffixRange(long suffixLength)
Create anHttpRange
that ranges over the last given number of bytes.返回变量类型为HttpRange的类型的org.springframework.http中的方法 修饰符和类型 方法 说明 List<HttpRange>
HttpHeaders. getRange()
Return the value of theRange
header.static List<HttpRange>
HttpRange. parseRanges(String ranges)
Parse the given, comma-separated string into a list ofHttpRange
objects.类型变量类型为HttpRange的org.springframework.http中的方法参数 修饰符和类型 方法 说明 void
HttpHeaders. setRange(List<HttpRange> ranges)
Sets the (new) value of theRange
header.static List<ResourceRegion>
HttpRange. toResourceRegions(List<HttpRange> ranges, Resource resource)
Convert eachHttpRange
into aResourceRegion
, selecting the appropriate segment of the givenResource
using HTTP Range information.static String
HttpRange. toString(Collection<HttpRange> ranges)
Return a string representation of the given list ofHttpRange
objects.org.springframework.mock.http.server.reactive中HttpRange的使用
参数类型为HttpRange的org.springframework.mock.http.server.reactive中的方法 修饰符和类型 方法 说明 B
MockServerHttpRequest.BaseBuilder. range(HttpRange... ranges)
Set the (new) value of the Range header.org.springframework.web.reactive.function.server中HttpRange的使用
返回变量类型为HttpRange的类型的org.springframework.web.reactive.function.server中的方法 修饰符和类型 方法 说明 List<HttpRange>
ServerRequest.Headers. range()
Get the value of theRange
header.org.springframework.web.reactive.function.server.support中HttpRange的使用
返回变量类型为HttpRange的类型的org.springframework.web.reactive.function.server.support中的方法 修饰符和类型 方法 说明 List<HttpRange>
ServerRequestWrapper.HeadersWrapper. range()
org.springframework.web.servlet.function中HttpRange的使用
返回变量类型为HttpRange的类型的org.springframework.web.servlet.function中的方法 修饰符和类型 方法 说明 List<HttpRange>
ServerRequest.Headers. range()
Get the value of theRange
header.