From 3c8bbc434d32ad75097647b0cdbc9ea1b0ad2645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 4 Jul 2023 01:46:32 +0200 Subject: feat: Stabilize Deno.serve() API (#19141) This commit stabilizes "Deno.serve()", which becomes the preferred way to create HTTP servers in Deno. Documentation was adjusted for each overload of "Deno.serve()" API and the API always binds to "127.0.0.1:8000" by default. --- cli/tests/unit/serve_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tests/unit') diff --git a/cli/tests/unit/serve_test.ts b/cli/tests/unit/serve_test.ts index 8ab5209df..fd7cc869a 100644 --- a/cli/tests/unit/serve_test.ts +++ b/cli/tests/unit/serve_test.ts @@ -3077,16 +3077,16 @@ Deno.test( assertEquals( "hello world!", - await curlRequest(["https://localhost:9000/path", "-k"]), + await curlRequest(["https://localhost:8000/path", "-k"]), ); assertEquals( "hello world!", - await curlRequest(["https://localhost:9000/path", "-k", "--http2"]), + await curlRequest(["https://localhost:8000/path", "-k", "--http2"]), ); assertEquals( "hello world!", await curlRequest([ - "https://localhost:9000/path", + "https://localhost:8000/path", "-k", "--http2", "--http2-prior-knowledge", -- cgit v1.2.3