diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/asynchttpserver.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/asynchttpserver.nim b/lib/pure/asynchttpserver.nim index 68da5f7c9..a558d9d7e 100644 --- a/lib/pure/asynchttpserver.nim +++ b/lib/pure/asynchttpserver.nim @@ -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"} |