-
Notifications
You must be signed in to change notification settings - Fork 16
/
range-parser.node.txt
19 lines (15 loc) · 1.82 KB
/
range-parser.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
RANGE-PARSER
VERSION ==> #1.2.1
#Used by Express
RANGE-PARSER(NUM[, OPTS])->VAL #Parses Range: TYPE=RANGE,... [C]
#NUM is resource byte size.
#VAL can be:
# - NUM (error)
# - -2: Range [C] malformed
# - -1: goes beyond resource size
# - OBJ_ARR:
# - OBJ_ARR.type 'TYPE' (e.g. 'bytes')
# - OBJ.start|end NUM2 (index starts at 0)
#If OPTS.combine true (def: false), ranges will be merged if possible