From 7937ae3f2f5a8c11f52c42676ba56d12fcb59aeb Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Fri, 6 Sep 2024 08:15:00 +1000 Subject: chore(net): soft-remove `Deno.serveHttp()` (#25451) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Towards #22079 --------- Co-authored-by: Bartek IwaƄczuk --- ext/http/01_http.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ext') 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); } -- cgit v1.2.3