From a25055356cc850dcfe9f50d550dc7582c2312b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 14 Jan 2024 22:17:50 +0100 Subject: [PATCH] feat: Deprecate 'Deno.serveHttp' API (#21874) `Deno.serveHttp` is now deprecated. Users should migrate to `Deno.serve` API. --- cli/tsc/dts/lib.deno.ns.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 9740668b39..3cc6d6a4f3 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -5286,7 +5286,9 @@ declare namespace Deno { /** The event yielded from an {@linkcode HttpConn} which represents an HTTP * request from a remote client. * - * @category HTTP Server */ + * @category HTTP Server + * @deprecated Use {@linkcode serve} instead. + */ export interface RequestEvent { /** The request from the client in the form of the web platform * {@linkcode Request}. */ @@ -5305,7 +5307,9 @@ declare namespace Deno { * yields up {@linkcode RequestEvent} events, representing individual * requests on the HTTP server connection. * - * @category HTTP Server */ + * @category HTTP Server + * @deprecated Use {@linkcode serve} instead. + */ export interface HttpConn extends AsyncIterable, Disposable { /** The resource ID associated with this connection. Generally users do not * need to be aware of this identifier. */ @@ -5370,6 +5374,7 @@ declare namespace Deno { * used elsewhere. In such a case, this function will fail. * * @category HTTP Server + * @deprecated Use {@linkcode serve} instead. */ export function serveHttp(conn: Conn): HttpConn;