add missing import to asynchttpserver's example

This commit is contained in:
narimiran
2021-06-03 15:20:42 +02:00
parent 3e57c2f780
commit 7ef364a402

View File

@@ -18,7 +18,7 @@ runnableExamples("-r:off"):
# This example will create an HTTP server on an automatically chosen port.
# It will respond to all requests with a `200 OK` response code and "Hello World"
# as the response body.
import std/asyncdispatch
import std/asyncdispatch, asynchttpserver
proc main {.async.} =
var server = newAsyncHttpServer()
proc cb(req: Request) {.async.} =