diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-14 22:17:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-14 22:17:50 +0100 |
commit | a25055356cc850dcfe9f50d550dc7582c2312b6f (patch) | |
tree | 0275afa7ea02eda6b426011461cabe3c6dc524a9 /cli/tsc/dts/lib.deno.ns.d.ts | |
parent | 0d51c1f90ecc3d276e17564c2471604b6dc1f2bd (diff) |
feat: Deprecate 'Deno.serveHttp' API (#21874)
`Deno.serveHttp` is now deprecated.
Users should migrate to `Deno.serve` API.
Diffstat (limited to 'cli/tsc/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 9 |
1 files 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 9740668b3..3cc6d6a4f 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<RequestEvent>, 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; |