From 942e67c00b8ebdf6671fc8bb2e6c78c3ad8b3ff8 Mon Sep 17 00:00:00 2001 From: Yusuke Sakurai Date: Thu, 27 Feb 2020 00:48:35 +0900 Subject: refactor(std/http): move io functions to http/io.ts (#4126) --- std/http/file_server.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'std/http/file_server.ts') diff --git a/std/http/file_server.ts b/std/http/file_server.ts index da2b0b5a2..e1fe14fcf 100755 --- a/std/http/file_server.ts +++ b/std/http/file_server.ts @@ -8,14 +8,10 @@ const { args, stat, readDir, open, exit } = Deno; import { posix } from "../path/mod.ts"; -import { - listenAndServe, - ServerRequest, - setContentLength, - Response -} from "./server.ts"; +import { listenAndServe, ServerRequest, Response } from "./server.ts"; import { parse } from "../flags/mod.ts"; import { assert } from "../testing/asserts.ts"; +import { setContentLength } from "./io.ts"; interface EntryInfo { mode: string; -- cgit v1.2.3