refactor(std/http): move io functions to http/io.ts (#4126)

This commit is contained in:
Yusuke Sakurai 2020-02-27 00:48:35 +09:00 committed by GitHub
parent 9a8d6fbd98
commit 942e67c00b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 667 additions and 691 deletions

View file

@ -1,8 +1,7 @@
const { connect, run } = Deno;
import { assert, assertEquals } from "../testing/asserts.ts";
import { BufReader, BufWriter } from "../io/bufio.ts";
import { TextProtoReader } from "../textproto/mod.ts";
const { connect, run, test } = Deno;
let server: Deno.Process;
async function startServer(): Promise<void> {
@ -59,7 +58,7 @@ content-length: 6
Step7
`;
Deno.test(async function serverPipelineRace(): Promise<void> {
test(async function serverPipelineRace(): Promise<void> {
await startServer();
const conn = await connect({ port: 4501 });