Revert "add missing import to asynchttpserver's example" (#18164)

This reverts commit 7ef364a402.
This commit is contained in:
flywind 2021-06-03 22:44:11 +08:00 • committed by GitHub
commit d31cbfd167
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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