diff options
author | Yury Selivanov <yury@edgedb.com> | 2021-11-26 10:59:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 19:59:53 +0100 |
commit | 1d3f734e1815bf1649e0cac445be9eacb4cd296d (patch) | |
tree | f0178e951f3f44313def5d7ea8e2e391219f7791 /ext/net/ops.rs | |
parent | d763633781be484bb19b458208dd7c11efb83228 (diff) |
feat(ext/net): ALPN support in `Deno.connectTls()` (#12786)
Diffstat (limited to 'ext/net/ops.rs')
-rw-r--r-- | ext/net/ops.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/net/ops.rs b/ext/net/ops.rs index d4fa2e5da..1f7005247 100644 --- a/ext/net/ops.rs +++ b/ext/net/ops.rs @@ -12,6 +12,7 @@ use deno_core::error::AnyError; use deno_core::op_async; use deno_core::op_sync; use deno_core::AsyncRefCell; +use deno_core::ByteString; use deno_core::CancelHandle; use deno_core::CancelTryFuture; use deno_core::OpPair; @@ -84,6 +85,12 @@ pub struct OpPacket { pub remote_addr: OpAddr, } +#[derive(Serialize, Clone, Debug)] +#[serde(rename_all = "camelCase")] +pub struct TlsHandshakeInfo { + pub alpn_protocol: Option<ByteString>, +} + #[derive(Serialize)] pub struct IpAddr { pub hostname: String, |