From 8a6a2a50f7ee17deadf8b7de5761c8f156885584 Mon Sep 17 00:00:00 2001 From: William Perron Date: Thu, 19 Nov 2020 21:59:45 -0500 Subject: docs(std): add missing jsdoc comments to exported functions (#8442) includes: - http/file_server.ts - testing/_diff.ts - testing/asserts.ts Relates to #7487 --- std/http/file_server.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'std/http/file_server.ts') diff --git a/std/http/file_server.ts b/std/http/file_server.ts index b75f9f9c1..331dbe5c5 100644 --- a/std/http/file_server.ts +++ b/std/http/file_server.ts @@ -112,6 +112,11 @@ function fileLenToString(len: number): string { return `${(len / base).toFixed(2)}${suffix[suffixIndex]}`; } +/** + * Returns an HTTP Response with the requested file as the body + * @param req The server request context used to cleanup the file handle + * @param filePath Path of the file to serve + */ export async function serveFile( req: ServerRequest, filePath: string, -- cgit v1.2.3