diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-04-01 15:23:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 15:23:39 -0400 |
commit | 12c6b2395be2bd1371284adf03e4826ba5edc761 (patch) | |
tree | ef8bf5a2ef76a43fc044759e98d615fbd1a52e93 /std/http | |
parent | 3a0b617503f4c81fb9773bd99c898270b98b9b5a (diff) |
Move encode, decode helpers to /std/encoding/utf8.ts, delete /std/strings/ (#4565)
also removes std/encoding/mod.ts and std/archive/mod.ts which are useless.
Diffstat (limited to 'std/http')
-rw-r--r-- | std/http/io.ts | 2 | ||||
-rw-r--r-- | std/http/io_test.ts | 2 | ||||
-rw-r--r-- | std/http/server_test.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/std/http/io.ts b/std/http/io.ts index e12c9fb6e..d16489767 100644 --- a/std/http/io.ts +++ b/std/http/io.ts @@ -1,7 +1,7 @@ import { BufReader, BufWriter } from "../io/bufio.ts"; import { TextProtoReader } from "../textproto/mod.ts"; import { assert } from "../testing/asserts.ts"; -import { encoder } from "../strings/mod.ts"; +import { encoder } from "../encoding/utf8.ts"; import { ServerRequest, Response } from "./server.ts"; import { STATUS_TEXT } from "./http_status.ts"; diff --git a/std/http/io_test.ts b/std/http/io_test.ts index c1d6a921b..aa9c86130 100644 --- a/std/http/io_test.ts +++ b/std/http/io_test.ts @@ -15,7 +15,7 @@ import { readRequest, writeResponse, } from "./io.ts"; -import { encode, decode } from "../strings/mod.ts"; +import { encode, decode } from "../encoding/utf8.ts"; import { BufReader, ReadLineResult } from "../io/bufio.ts"; import { chunkedBodyReader } from "./io.ts"; import { ServerRequest, Response } from "./server.ts"; diff --git a/std/http/server_test.ts b/std/http/server_test.ts index d6b2be053..e70c241c7 100644 --- a/std/http/server_test.ts +++ b/std/http/server_test.ts @@ -16,7 +16,7 @@ import { import { Response, ServerRequest, Server, serve } from "./server.ts"; import { BufReader, BufWriter } from "../io/bufio.ts"; import { delay } from "../util/async.ts"; -import { encode, decode } from "../strings/mod.ts"; +import { encode, decode } from "../encoding/utf8.ts"; import { mockConn } from "./mock.ts"; const { Buffer, test } = Deno; |