summaryrefslogtreecommitdiff
path: root/ext/http/00_serve.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-22 22:35:39 +0100
committerGitHub <noreply@github.com>2024-01-22 21:35:39 +0000
commit71551c80a1c7ea2cc75cf82c5871212559709789 (patch)
tree6d5e458e54ea6598d78d6b4d7177006a9048deb6 /ext/http/00_serve.js
parent69d5f136badfd7cfa9b979ff2fee7caf397098ca (diff)
feat(unstable): remove Deno.upgradeHttp API (#21856)
Closes https://github.com/denoland/deno/issues/21828. This API is a huge footgun. And given that "Deno.serveHttp" is a deprecated API that is discouraged to use (use "Deno.serve()" instead); it makes no sense to keep this API around. This is a step towards fully migrating to Hyper 1.
Diffstat (limited to 'ext/http/00_serve.js')
-rw-r--r--ext/http/00_serve.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/http/00_serve.js b/ext/http/00_serve.js
index 1bdcbd5d3..578eb718f 100644
--- a/ext/http/00_serve.js
+++ b/ext/http/00_serve.js
@@ -154,12 +154,6 @@ class InnerRequest {
throw new Deno.errors.Http("already closed");
}
- // upgradeHttp is async
- // TODO(mmastrac)
- if (upgradeType == "upgradeHttp") {
- throw "upgradeHttp is unavailable in Deno.serve at this time";
- }
-
// upgradeHttpRaw is sync
if (upgradeType == "upgradeHttpRaw") {
const external = this.#external;