Skip to content

Commit e79cb5a

Browse files
authored
Rename http/http.ts to http/server.ts (denoland#170)
Remove http/mod.ts
1 parent 56579ed commit e79cb5a

File tree

8 files changed

+6
-13
lines changed

8 files changed

+6
-13
lines changed

http/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A framework for creating HTTP/HTTPS server.
55
## Example
66

77
```typescript
8-
import { serve } from "https://deno.land/x/http/mod.ts";
8+
import { serve } from "https://deno.land/x/http/server.ts";
99
const s = serve("0.0.0.0:8000");
1010

1111
async function main() {

http/file_server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
ServerRequest,
1111
setContentLength,
1212
Response
13-
} from "./mod.ts";
13+
} from "./server.ts";
1414
import { cwd, DenoError, ErrorKind, args, stat, readDir, open } from "deno";
1515
import { extname } from "../fs/path.ts";
1616
import { contentType } from "../media_types/mod.ts";

http/mod.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.

http/http_test.ts renamed to http/server_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
ServerRequest,
1313
setContentLength,
1414
Response
15-
} from "./mod.ts";
15+
} from "./server.ts";
1616
import { BufWriter, BufReader } from "../io/bufio.ts";
1717

1818
interface ResponseTest {

test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import "fs/path/zero_length_strings_test.ts";
1515
import "io/bufio_test.ts";
1616
import "io/ioutil_test.ts";
1717
import "io/util_test.ts";
18-
import "http/http_test.ts";
18+
import "http/server_test.ts";
1919
import "http/file_server_test.ts";
2020
import "log/test.ts";
2121
import "log/handlers_test.ts";

ws/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
22
import { Buffer, Writer, Conn } from "deno";
3-
import { ServerRequest } from "../http/http.ts";
3+
import { ServerRequest } from "../http/server.ts";
44
import { BufReader, BufWriter } from "../io/bufio.ts";
55
import { readLong, readShort, sliceLongToBytes } from "../io/ioutil.ts";
66
import { Sha1 } from "./sha1.ts";

ws/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Buffer } from "deno";
33
import { BufReader } from "../io/bufio.ts";
44
import { test, assert, assertEqual } from "../testing/mod.ts";
55
import { createSecAccept, OpCode, readFrame, unmask } from "./mod.ts";
6-
import { serve } from "../http/http.ts";
6+
import { serve } from "../http/server.ts";
77

88
test(async function testReadUnmaskedTextFrame() {
99
// unmasked single text frame with payload "Hello"

0 commit comments

Comments
 (0)