Add imports to asynchttpserver example
This commit is contained in:
parent
6d749aed29
commit
2d20feb8f1
1 changed files with 2 additions and 0 deletions
|
|
@ -17,6 +17,8 @@
|
||||||
## as the response body.
|
## as the response body.
|
||||||
##
|
##
|
||||||
## .. code-block::nim
|
## .. code-block::nim
|
||||||
|
## import asynchttpserver, asyncdispatch
|
||||||
|
##
|
||||||
## var server = newAsyncHttpServer()
|
## var server = newAsyncHttpServer()
|
||||||
## proc cb(req: Request) {.async.} =
|
## proc cb(req: Request) {.async.} =
|
||||||
## await req.respond(Http200, "Hello World")
|
## await req.respond(Http200, "Hello World")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue