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