Merge pull request #5208 from luked99/async-json-example-fix

Async json example fix
This commit is contained in:
Dominik Picheta
2017-01-10 22:02:24 +01:00
committed by GitHub

View File

@@ -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"}