InclusiveByteRange

Byte range inclusive of end points. <PRE> parses the following types of byte ranges: bytes=100-499 bytes=-300 bytes=100- bytes=1-2,2-3,6-,-2 given an entity length, converts range to string bytes 100-499/500 </PRE> Based on RFC2616 3.12, 14.16, 14.35.1, 14.35.2 And yes the spec does strangely say that while 10-20, is bytes 10 to 20 and 10- is bytes 10 until the end that -20 IS NOT bytes 0-20, but the last 20 bytes of the content.

@version $version$

Constructors

this
this(long first, long last)
Undocumented in source.

Members

Functions

getFirst
long getFirst()
Undocumented in source. Be warned that the author may not have intended to support it.
getFirst
long getFirst(long size)
Undocumented in source. Be warned that the author may not have intended to support it.
getLast
long getLast()
Undocumented in source. Be warned that the author may not have intended to support it.
getLast
long getLast(long size)
Undocumented in source. Be warned that the author may not have intended to support it.
getSize
long getSize(long size)
Undocumented in source. Be warned that the author may not have intended to support it.
toHeaderRangeString
string toHeaderRangeString(long size)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

satisfiableRanges
List!InclusiveByteRange satisfiableRanges(List!string headers, long size)

@param headers Enumeration of Range header fields. @param size Size of the resource. @return LazyList of satisfiable ranges

to416HeaderRangeString
string to416HeaderRangeString(long size)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

first
long first;
Undocumented in source.
last
long last;
Undocumented in source.

Meta