diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-02-02 18:57:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-02 18:57:38 -0500 |
| commit | 132650cdf366e676c0ffec0cc68792c45149aacd (patch) | |
| tree | 9508162e85b36a6e904b24956a63d6ac477a98f0 /http | |
| parent | b400dad9b7da542799f504c5146efb33e796c250 (diff) | |
Rename http/http.ts to http/server.ts (denoland/deno_std#170)
Remove http/mod.ts
Original: https://github.com/denoland/deno_std/commit/e79cb5a31ab3d7667f2253824bf89cecc23ab231
Diffstat (limited to 'http')
| -rw-r--r-- | http/README.md | 2 | ||||
| -rwxr-xr-x | http/file_server.ts | 2 | ||||
| -rw-r--r-- | http/mod.ts | 7 | ||||
| -rw-r--r-- | http/server.ts (renamed from http/http.ts) | 0 | ||||
| -rw-r--r-- | http/server_test.ts (renamed from http/http_test.ts) | 2 |
5 files changed, 3 insertions, 10 deletions
diff --git a/http/README.md b/http/README.md index c598cdef4..2c9a90853 100644 --- a/http/README.md +++ b/http/README.md @@ -5,7 +5,7 @@ A framework for creating HTTP/HTTPS server. ## Example ```typescript -import { serve } from "https://deno.land/x/http/mod.ts"; +import { serve } from "https://deno.land/x/http/server.ts"; const s = serve("0.0.0.0:8000"); async function main() { diff --git a/http/file_server.ts b/http/file_server.ts index 4437a44e4..d1a34ab79 100755 --- a/http/file_server.ts +++ b/http/file_server.ts @@ -10,7 +10,7 @@ import { ServerRequest, setContentLength, Response -} from "./mod.ts"; +} from "./server.ts"; import { cwd, DenoError, ErrorKind, args, stat, readDir, open } from "deno"; import { extname } from "../fs/path.ts"; import { contentType } from "../media_types/mod.ts"; diff --git a/http/mod.ts b/http/mod.ts deleted file mode 100644 index a89f04417..000000000 --- a/http/mod.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { - serve, - listenAndServe, - Response, - setContentLength, - ServerRequest -} from "./http.ts"; diff --git a/http/http.ts b/http/server.ts index fe25a5f6e..fe25a5f6e 100644 --- a/http/http.ts +++ b/http/server.ts diff --git a/http/http_test.ts b/http/server_test.ts index ba0cec3e3..5fdb63ceb 100644 --- a/http/http_test.ts +++ b/http/server_test.ts @@ -12,7 +12,7 @@ import { ServerRequest, setContentLength, Response -} from "./mod.ts"; +} from "./server.ts"; import { BufWriter, BufReader } from "../io/bufio.ts"; interface ResponseTest { |
