summaryrefslogtreecommitdiff
path: root/std/http
diff options
context:
space:
mode:
Diffstat (limited to 'std/http')
-rw-r--r--std/http/_io.ts2
-rw-r--r--std/http/cookie.ts2
-rw-r--r--std/http/file_server.ts6
-rw-r--r--std/http/file_server_test.ts2
4 files changed, 6 insertions, 6 deletions
diff --git a/std/http/_io.ts b/std/http/_io.ts
index 5bdf930e6..529f59cb5 100644
--- a/std/http/_io.ts
+++ b/std/http/_io.ts
@@ -65,7 +65,7 @@ export function chunkedBodyReader(h: Headers, r: BufReader): Deno.Reader {
}
const line = await tp.readLine();
if (line === null) throw new Deno.errors.UnexpectedEof();
- // TODO: handle chunk extension
+ // TODO(bartlomieju): handle chunk extension
const [chunkSizeString] = line.split(";");
const chunkSize = parseInt(chunkSizeString, 16);
if (Number.isNaN(chunkSize) || chunkSize < 0) {
diff --git a/std/http/cookie.ts b/std/http/cookie.ts
index c48a94d95..486afd6c6 100644
--- a/std/http/cookie.ts
+++ b/std/http/cookie.ts
@@ -178,7 +178,7 @@ export function setCookie(res: { headers?: Headers }, cookie: Cookie): void {
if (!res.headers) {
res.headers = new Headers();
}
- // TODO (zekth) : Add proper parsing of Set-Cookie headers
+ // TODO(zekth) : Add proper parsing of Set-Cookie headers
// Parsing cookie headers to make consistent set-cookie header
// ref: https://tools.ietf.org/html/rfc6265#section-4.1.1
const v = toString(cookie);
diff --git a/std/http/file_server.ts b/std/http/file_server.ts
index 5b8811c08..8fd2e7484 100644
--- a/std/http/file_server.ts
+++ b/std/http/file_server.ts
@@ -2,8 +2,8 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
// This program serves files in the current directory over HTTP.
-// TODO Stream responses instead of reading them into memory.
-// TODO Add tests like these:
+// TODO(bartlomieju): Stream responses instead of reading them into memory.
+// TODO(bartlomieju): Add tests like these:
// https://github.com/indexzero/http-server/blob/master/test/http-server-test.js
import { extname, posix } from "../path/mod.ts";
@@ -141,7 +141,7 @@ export async function serveFile(
};
}
-// TODO: simplify this after deno.stat and deno.readDir are fixed
+// TODO(bartlomieju): simplify this after deno.stat and deno.readDir are fixed
async function serveDir(
req: ServerRequest,
dirPath: string,
diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts
index beb0c830d..638121b45 100644
--- a/std/http/file_server_test.ts
+++ b/std/http/file_server_test.ts
@@ -201,7 +201,7 @@ Deno.test("serveDirectory", async function (): Promise<void> {
assert(page.includes("README.md"));
// `Deno.FileInfo` is not completely compatible with Windows yet
- // TODO: `mode` should work correctly in the future.
+ // TODO(bartlomieju): `mode` should work correctly in the future.
// Correct this test case accordingly.
Deno.build.os !== "windows" &&
assert(/<td class="mode">(\s)*\([a-zA-Z-]{10}\)(\s)*<\/td>/.test(page));