-
Notifications
You must be signed in to change notification settings - Fork 16
/
li.node.txt
14 lines (9 loc) · 1.45 KB
/
li.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
LI
VERSION ==> #1.3.0
#Parse and serialize Link [S] HTTP headers
LI.parse #OBJ: REL 'URI'
('<URI>; rel="REL ..." ...' #Invalid headers are skipped, i.e. returns {}
[, OPTS])->OBJ #If OPTS.extended true, returns OBJ_ARR: link 'URI', rel 'REL'_ARR
LI.stringify(OBJ)->STR #Inverse