2.2.1.2 Range
The Range header is optional in a SEARCH method request. The WebDAV Extensions for Search extend the ABNF specified in [RFC2068] for the Range header by defining a new row-ranges-specifier rule. The byte-ranges-specifier rule is specified in [RFC2068].
ranges-specifier = byte-ranges-specifier
/ row-ranges-specifier
row-ranges-specifier = row-range-unit "=" [row-range-list]
row-range-list = row-range ["," row-range-list]
row-range = row-range-spec / suffix-row-range-spec
row-range-spec = first-row-num "-" [last-row-num]
first-row-num = 1*DIGIT
last-row-num = 1*DIGIT
suffix-row-range-spec = "-" suffix-length
suffix-length = 1*DIGIT
row-range-unit = "rows"
Examples:
Range: rows=20-39 Range: rows=0-5, 10-15, 20-25, 30-35 Range: rows=-50 (the last 50 rows) Range: rows=228- (all rows from the 228th to the end of the result set) Range: rows=0-4,-5 (the first and last five rows)