-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcookie.node.txt
27 lines (22 loc) · 1.12 KB
/
cookie.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
┏━━━━━━━━━━━━┓
┃ COOKIE ┃
┗━━━━━━━━━━━━┛
ALTERNATIVES ==> #See js-cookie
VERSION ==> #1.0.2
parse('COOKIE'[, OPTS]) #Parses Cookie: COOKIE [C]
->COOKIE_OBJ #COOKIE_OBJ.VAR 'VAL'
OPTS.decode #FUNC('VAL')[->'VAL']
#Def: decodeURIComponent
serialize('VAR', 'VAL'[, OPTS])
->'COOKIE' #Stringifies Set-Cookie: COOKIE [S]
OPTS.domain #STR
OPTS.path #STR
OPTS.expires #DATE
OPTS.maxAge #NUM (in secs)
OPTS.secure #BOOL
OPTS.httpOnly #BOOL
OPTS.sameSite #'strict|lax|none'
OPTS.priority #'low|medium|high'
OPTS.partitioned #BOOL
OPTS.encode #FUNC('VAL')->'VAL'
#Def: encodeURIComponent