mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 15:31:28 +00:00
Merge pull request #5208 from luked99/async-json-example-fix
Async json example fix
This commit is contained in:
@@ -85,6 +85,7 @@ proc respond*(req: Request, code: HttpCode, content: string,
|
||||
## Examples
|
||||
## --------
|
||||
## .. code-block::nim
|
||||
## import json
|
||||
## proc handler(req: Request) {.async.} =
|
||||
## if req.url.path == "/hello-world":
|
||||
## let msg = %* {"message": "Hello World"}
|
||||
|
||||
Reference in New Issue
Block a user