summaryrefslogtreecommitdiff
path: root/ext/net/ops.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/net/ops.rs')
-rw-r--r--ext/net/ops.rs7
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,