summaryrefslogtreecommitdiff
path: root/http.ts
diff options
context:
space:
mode:
author木杉 <zhmushan@qq.com>2018-12-10 09:17:55 +0800
committerRyan Dahl <ry@tinyclouds.org>2018-12-09 20:17:55 -0500
commit626cef41b60b3f1802655fd5ea4f638db4934466 (patch)
tree278a6a17382c77aebae5701823718c12c470067e /http.ts
parent335343f51fbea2303f904007a5a12b779919918b (diff)
supply the directory to serve as CLI argument (denoland/deno_std#13)
Original: https://github.com/denoland/deno_std/commit/7cd4d9f4eaa4b1d167306b9000af30421319600a
Diffstat (limited to 'http.ts')
-rw-r--r--http.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.ts b/http.ts
index 508d1ecaa..b11e2b369 100644
--- a/http.ts
+++ b/http.ts
@@ -82,7 +82,7 @@ export async function* serve(addr: string) {
listener.close();
}
-export async function listenAndServe(addr: string, handler: (ServerRequest) => void) {
+export async function listenAndServe(addr: string, handler: (req: ServerRequest) => void) {
const server = serve(addr);
for await (const request of server) {