refactor: "Deno.serve()" API uses "Deno.serveHttp()" internally (#18568)

This commit changes implementation of "Deno.serve()" API to use
"Deno.serveHttp()" under the hood. This change will allow us to
remove the "flash" server implementation, bringing stability to the
"Deno.serve()" API.

"cli/tests/unit/flash_test.ts" was renamed to "serve_test.ts".

Closes https://github.com/denoland/deno/issues/15574
Closes https://github.com/denoland/deno/issues/15504
Closes https://github.com/denoland/deno/issues/15646
Closes https://github.com/denoland/deno/issues/15909
Closes https://github.com/denoland/deno/issues/15911
Closes https://github.com/denoland/deno/issues/16828
Closes https://github.com/denoland/deno/issues/18046
Closes https://github.com/denoland/deno/issues/15869
This commit is contained in:
Bartek Iwańczuk 2023-04-03 17:44:18 +02:00 committed by GitHub
parent 6d68392f8a
commit 2846bbe0a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 245 additions and 165 deletions

View file

@ -26,8 +26,6 @@ fn js_unit_tests() {
.current_dir(util::root_path())
.arg("test")
.arg("--unstable")
// Flash tests are crashing with SIGSEGV on Ubuntu, so we'll disable these entirely
.arg("--ignore=./cli/tests/unit/flash_test.ts")
.arg("--location=http://js-unit-tests/foo/bar")
.arg("--no-prompt")
.arg("-A")