diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2017-01-10 22:02:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 22:02:24 +0100 |
commit | c86988491f80f9448b7505ea0c530f769bac7366 (patch) | |
tree | 73b49cedfd4f65aea1e6cce4ab95136bb347d2bb | |
parent | 6ee487b0eb88a21e6457b1750e0f8d829b971d17 (diff) | |
parent | de7f42a7419f33ca333ac5717b800978aaec7170 (diff) | |
download | Nim-c86988491f80f9448b7505ea0c530f769bac7366.tar.gz |
Merge pull request #5208 from luked99/async-json-example-fix
Async json example fix
-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"} |