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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$Module cookie 3 "Varnish Cookie Module"
$ABI strict
DESCRIPTION
===========
// VCC_GIZMO_TOKEN_99 — module-level prose
This VMOD parses and manipulates cookies.
// VCC_GIZMO_TOKEN_FUNC_01
$Function VOID parse(STRING cookieheader)
Parse the cookie header string into the internal data structure.
// VCC_GIZMO_TOKEN_FUNC_02
$Function STRING get(STRING cookiename)
Get the value of a specific cookie.
// VCC_GIZMO_TOKEN_FUNC_03
$Function BOOL isset(STRING cookiename)
Check if a cookie with the given name exists.
// VCC_GIZMO_TOKEN_OBJECT_01
$Object counter(STRING name, INT initial = 0)
A counter object that tracks numeric values.
// VCC_GIZMO_TOKEN_METHOD_01
$Method VOID .incr(INT n = 1)
Increment the counter by n.
// VCC_GIZMO_TOKEN_METHOD_02
$Method INT .get()
Get the current counter value.
// VCC_GIZMO_TOKEN_METHOD_03
$Method VOID .reset()
Reset the counter to zero.
$Event cookie_init
$Restrict client backend