mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
Revert "add missing import to asynchttpserver's example" (#18164)
This reverts commit 7ef364a402.
This commit is contained in:
@@ -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, asynchttpserver
|
||||
import std/asyncdispatch
|
||||
proc main {.async.} =
|
||||
var server = newAsyncHttpServer()
|
||||
proc cb(req: Request) {.async.} =
|
||||
|
||||
Reference in New Issue
Block a user