summaryrefslogtreecommitdiff
path: root/cli/tsc
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc')
-rw-r--r--cli/tsc/99_main_compiler.js1
-rw-r--r--cli/tsc/dts/lib.deno.unstable.d.ts28
2 files changed, 0 insertions, 29 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js
index 0cb917f96..32c3bf035 100644
--- a/cli/tsc/99_main_compiler.js
+++ b/cli/tsc/99_main_compiler.js
@@ -53,7 +53,6 @@ delete Object.prototype.__proto__;
"listen",
"listenDatagram",
"openKv",
- "upgradeHttp",
"umask",
]);
const unstableMsgSuggestion =
diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts
index f0f6f4571..870cb2e1a 100644
--- a/cli/tsc/dts/lib.deno.unstable.d.ts
+++ b/cli/tsc/dts/lib.deno.unstable.d.ts
@@ -1189,34 +1189,6 @@ declare namespace Deno {
/** **UNSTABLE**: New API, yet to be vetted.
*
- * Allows "hijacking" the connection that the request is associated with. This
- * can be used to implement protocols that build on top of HTTP (eg.
- * {@linkcode WebSocket}).
- *
- * The returned promise returns underlying connection and first packet
- * received. The promise shouldn't be awaited before responding to the
- * `request`, otherwise event loop might deadlock.
- *
- * ```ts
- * function handler(req: Request): Response {
- * Deno.upgradeHttp(req).then(([conn, firstPacket]) => {
- * // ...
- * });
- * return new Response(null, { status: 101 });
- * }
- * ```
- *
- * This method can only be called on requests originating the
- * {@linkcode Deno.serveHttp} server.
- *
- * @category HTTP Server
- */
- export function upgradeHttp(
- request: Request,
- ): Promise<[Deno.Conn, Uint8Array]>;
-
- /** **UNSTABLE**: New API, yet to be vetted.
- *
* Open a new {@linkcode Deno.Kv} connection to persist data.
*
* When a path is provided, the database will be persisted to disk at that