Parses the range from a HTTP header, where:
header- A string in the form of
toare integers specifying the range. Both are optional. Multiple ranges can be passed as a comma delimited list.
length- A positive integer specifying the maximum length the range can cover. If a
tovalue passed in the
headerstring is greater than
tovalue is set as
length - 1.
Returns an array of objects with the properties
to, which specify the beginning and ending of the range. Overlapping ranges are combined into one object. Returns
null for invalid input.
Transform Stream that extracts the portion of a piped in stream within
range- an object with the properties
tothat specify the range of the piped in stream to read. Objects returned by
Ammo.headercan be passed into