Hi Cnerd, Thank you for your comment. It worked with the code like this: get "/roll-a-dice": let random_number = rand(1..6) if result.headers.isNone(): result.headers = some(RawHeaders(@[])) result.headers.get().add((key: "x-random", val: $random_number)) resp $random_number after "/roll-a-dice": {.gcsafe.}: if result.headers.isSome(): for header in result.headers.get(): if header.key == "x-random": logger.log(lvlInfo, "The dice roll was " & $header.val) Run
- Background tasks in jester gowthamanb
- Background tasks in jester gs
- Background tasks in jester ThomasTJdev
- Background tasks in jester sdmcallister
- Background tasks in jester gowthamanb
- Background tasks in jester Hideki
- Background tasks in jester Cnerd
- Background tasks in jester Cnerd
- Background tasks in jester Hideki
- Background tasks in jester Hideki
- Background tasks in jester Cnerd
- Background tasks in jester ejstembler