summaryrefslogtreecommitdiff
path: root/ext/http
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-06 08:15:00 +1000
committerGitHub <noreply@github.com>2024-09-06 08:15:00 +1000
commit7937ae3f2f5a8c11f52c42676ba56d12fcb59aeb (patch)
tree1bfb9d994ef638bc26dc9c643e6eca35c2a7ccd9 /ext/http
parent6919f33216bb1db2b3596ca6f2f9c2c54f322720 (diff)
chore(net): soft-remove `Deno.serveHttp()` (#25451)
Towards #22079 --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/http')
-rw-r--r--ext/http/01_http.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js
index b54768289..e88684858 100644
--- a/ext/http/01_http.js
+++ b/ext/http/01_http.js
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { core, internals, primordials } from "ext:core/mod.js";
+import { core, primordials } from "ext:core/mod.js";
const {
BadResourcePrototype,
InterruptedPrototype,
@@ -396,11 +396,6 @@ function createRespondWith(
}
function serveHttp(conn) {
- internals.warnOnDeprecatedApi(
- "Deno.serveHttp()",
- new Error().stack,
- "Use `Deno.serve()` instead.",
- );
const rid = op_http_start(conn[internalRidSymbol]);
return new HttpConn(rid, conn.remoteAddr, conn.localAddr);
}