UNPKG
@t2ee/cookieman
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
t2ee cookie middleware
github.com/t2ee/cookieman
t2ee/cookieman
@t2ee/cookieman
/
src
/
Cookie.ts
13 lines
(12 loc)
•
243 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
default
class
Cookie
{
key
:
string
;
expires
:
Date
=
new
Date
();
path
:
string
;
domain
:
string
;
secure
:
boolean
=
false
;
httpOnly
:
boolean
=
false
;
clear
(
) {
this
.
key
=
null
; }
data
?:
Object
; }