[stdlib] make cookies module modern (#17116)

* update cookies module
* introduce sameSite.Default

Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com>
This commit is contained in:
flywind 2021-02-24 03:14:19 -06:00 • committed by GitHub
commit 46bd222c89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 14 deletions

View file

@ -1,4 +1,9 @@
import cookies, times, strtabs
discard """
targets: "c js"
"""
import std/[cookies, times, strtabs]
let expire = fromUnix(0) + 1.seconds