From c5270abad7c42968dcbdbc8d9f09d7675fb843e9 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 16 Mar 2022 14:54:18 +0100 Subject: feat(unstable): Add Deno.upgradeHttp API (#13618) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds "Deno.upgradeHttp" API, which allows to "hijack" connection and switch protocols, to eg. implement WebSocket required for Node compat. Co-authored-by: crowlkats Co-authored-by: Ryan Dahl Co-authored-by: Bartek IwaƄczuk --- ext/net/ops_tls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/net') diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs index 05e007176..74301292b 100644 --- a/ext/net/ops_tls.rs +++ b/ext/net/ops_tls.rs @@ -127,7 +127,7 @@ impl TlsStream { Self::new(tcp, Connection::Server(tls)) } - fn into_split(self) -> (ReadHalf, WriteHalf) { + pub fn into_split(self) -> (ReadHalf, WriteHalf) { let shared = Shared::new(self); let rd = ReadHalf { shared: shared.clone(), -- cgit v1.2.3