mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Use cowboy_clock types in cowboy_cookies instead of calendar
Until calendar exports them at least.
This commit is contained in:
parent
cd06efeba3
commit
d858153fce
2 changed files with 2 additions and 1 deletions
|
@ -38,6 +38,7 @@
|
||||||
-type time() :: {hour(), minute(), second()}.
|
-type time() :: {hour(), minute(), second()}.
|
||||||
|
|
||||||
-type datetime() :: {date(), time()}.
|
-type datetime() :: {date(), time()}.
|
||||||
|
-export_type([date/0, time/0, datetime/0]).
|
||||||
|
|
||||||
-record(state, {
|
-record(state, {
|
||||||
universaltime = undefined :: undefined | datetime(),
|
universaltime = undefined :: undefined | datetime(),
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
-type kv() :: {Name::binary(), Value::binary()}.
|
-type kv() :: {Name::binary(), Value::binary()}.
|
||||||
-type kvlist() :: [kv()].
|
-type kvlist() :: [kv()].
|
||||||
-type cookie_option() :: {max_age, integer()}
|
-type cookie_option() :: {max_age, integer()}
|
||||||
| {local_time, {calendar:date(), calendar:time()}}
|
| {local_time, {cowboy_clock:date(), cowboy_clock:time()}}
|
||||||
| {domain, binary()} | {path, binary()}
|
| {domain, binary()} | {path, binary()}
|
||||||
| {secure, true | false} | {http_only, true | false}.
|
| {secure, true | false} | {http_only, true | false}.
|
||||||
-export_type([kv/0, kvlist/0, cookie_option/0]).
|
-export_type([kv/0, kvlist/0, cookie_option/0]).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue