@pumpkin-plugins/bedrock-addon-manager API / web/http / parseRange
Function: parseRange() ​
parseRange(
header,size):ByteRange|"unsatisfiable"|undefined
Defined in: packages/bedrock-addon-manager/src/web/http.ts:66
Reads a single-range Range header. Malformed or multi-range headers are ignored (the whole file is served, which HTTP allows); a range past the end is unsatisfiable.
Parameters ​
header ​
string | undefined
size ​
number
Returns ​
ByteRange | "unsatisfiable" | undefined