Skip to content

Commit

Permalink
Rename http/http.ts to http/server.ts (denoland#170)
Browse files Browse the repository at this point in the history
Remove http/mod.ts
  • Loading branch information
ry committed Feb 2, 2019
1 parent 56579ed commit e79cb5a
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion http/README.md
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion http/file_server.ts
Expand Up @@ -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";
Expand Down
7 changes: 0 additions & 7 deletions http/mod.ts

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion http/http_test.ts → http/server_test.ts
Expand Up @@ -12,7 +12,7 @@ import {
ServerRequest,
setContentLength,
Response
} from "./mod.ts";
} from "./server.ts";
import { BufWriter, BufReader } from "../io/bufio.ts";

interface ResponseTest {
Expand Down
2 changes: 1 addition & 1 deletion test.ts
Expand Up @@ -15,7 +15,7 @@ import "fs/path/zero_length_strings_test.ts";
import "io/bufio_test.ts";
import "io/ioutil_test.ts";
import "io/util_test.ts";
import "http/http_test.ts";
import "http/server_test.ts";
import "http/file_server_test.ts";
import "log/test.ts";
import "log/handlers_test.ts";
Expand Down
2 changes: 1 addition & 1 deletion ws/mod.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { Buffer, Writer, Conn } from "deno";
import { ServerRequest } from "../http/http.ts";
import { ServerRequest } from "../http/server.ts";
import { BufReader, BufWriter } from "../io/bufio.ts";
import { readLong, readShort, sliceLongToBytes } from "../io/ioutil.ts";
import { Sha1 } from "./sha1.ts";
Expand Down
2 changes: 1 addition & 1 deletion ws/test.ts
Expand Up @@ -3,7 +3,7 @@ import { Buffer } from "deno";
import { BufReader } from "../io/bufio.ts";
import { test, assert, assertEqual } from "../testing/mod.ts";
import { createSecAccept, OpCode, readFrame, unmask } from "./mod.ts";
import { serve } from "../http/http.ts";
import { serve } from "../http/server.ts";

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

0 comments on commit e79cb5a

Please sign in to comment.