summaryrefslogtreecommitdiff
path: root/cli/ops/tls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/tls.rs')
-rw-r--r--cli/ops/tls.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/ops/tls.rs b/cli/ops/tls.rs
index 2b1d94f2b..6528884af 100644
--- a/cli/ops/tls.rs
+++ b/cli/ops/tls.rs
@@ -1,5 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use super::dispatch_json::{Deserialize, JsonOp, Value};
+use crate::ops::json_op;
use crate::resolve_addr::resolve_addr;
use crate::resources;
use crate::state::ThreadSafeState;
@@ -20,6 +21,9 @@ struct DialTLSArgs {
hostname: String,
port: u16,
}
+pub fn init(i: &mut Isolate, s: &ThreadSafeState) {
+ i.register_op("dial_tls", s.core_op(json_op(s.stateful_op(op_dial_tls))));
+}
pub fn op_dial_tls(
state: &ThreadSafeState,