import jester
const cookies = {
"a": "a",
"b": "b",
"c": "c",
"d": "d",
"e": "e",
"f": "f"
}.toTable
proc myrouter(request: Request): Future[ResponseData] {.async.} =
block route:
for name, cookie in cookies:
setCookie(name, cookie)
resp Http200
var j = initJester myrouter
j.serve
fails at runtime when the endpoint is hit with SIGBUS: Illegal storage access. (Attempt to read from nil?)
This is only with the refc gc, but linux and Windows don't have the crash with orc. macOS still crashes, though
fails at runtime when the endpoint is hit with
SIGBUS: Illegal storage access. (Attempt to read from nil?)This is only with the
refcgc, but linux and Windows don't have the crash withorc. macOS still crashes, though