summaryrefslogtreecommitdiff
path: root/std/http/file_server.ts
diff options
context:
space:
mode:
authorYusuke Sakurai <kerokerokerop@gmail.com>2020-02-27 00:48:35 +0900
committerGitHub <noreply@github.com>2020-02-26 10:48:35 -0500
commit942e67c00b8ebdf6671fc8bb2e6c78c3ad8b3ff8 (patch)
tree9e53511a0cd6d55d4e9eb96e58f9b54e481981a5 /std/http/file_server.ts
parent9a8d6fbd984d2c0f9775d90af64b3e95231dd21d (diff)
refactor(std/http): move io functions to http/io.ts (#4126)
Diffstat (limited to 'std/http/file_server.ts')
-rwxr-xr-xstd/http/file_server.ts8
1 files changed, 2 insertions, 6 deletions
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;