diff options
author | Bert Belder <bertbelder@gmail.com> | 2022-03-16 14:54:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 14:54:18 +0100 |
commit | c5270abad7c42968dcbdbc8d9f09d7675fb843e9 (patch) | |
tree | 7e7ff9b63b7cd3420295d5e546dcd987ed746d7d /ext/net/ops_tls.rs | |
parent | 89a41d0a67c531d937126bbdb095ab1edb5eede2 (diff) |
feat(unstable): Add Deno.upgradeHttp API (#13618)
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 <crowlkats@toaxl.com>
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/net/ops_tls.rs')
-rw-r--r-- | ext/net/ops_tls.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |