mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
refactor(ext/net): make op_connect & op_connect_tls public (#12150)
This commit is contained in:
parent
269bf380e0
commit
3708cbc600
3 changed files with 4 additions and 4 deletions
|
@ -94,7 +94,7 @@ pub struct DefaultTlsOptions {
|
||||||
/// using type alias for a `Option<Vec<String>>` could work, but there's a high chance
|
/// using type alias for a `Option<Vec<String>>` could work, but there's a high chance
|
||||||
/// that there might be another type alias pointing to a `Option<Vec<String>>`, which
|
/// that there might be another type alias pointing to a `Option<Vec<String>>`, which
|
||||||
/// would override previously used alias.
|
/// would override previously used alias.
|
||||||
pub struct UnsafelyIgnoreCertificateErrors(Option<Vec<String>>);
|
pub struct UnsafelyIgnoreCertificateErrors(pub Option<Vec<String>>);
|
||||||
|
|
||||||
pub fn init<P: NetPermissions + 'static>(
|
pub fn init<P: NetPermissions + 'static>(
|
||||||
root_cert_store: Option<RootCertStore>,
|
root_cert_store: Option<RootCertStore>,
|
||||||
|
|
|
@ -278,13 +278,13 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
struct ConnectArgs {
|
pub struct ConnectArgs {
|
||||||
transport: String,
|
transport: String,
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
transport_args: ArgsEnum,
|
transport_args: ArgsEnum,
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn op_connect<NP>(
|
pub async fn op_connect<NP>(
|
||||||
state: Rc<RefCell<OpState>>,
|
state: Rc<RefCell<OpState>>,
|
||||||
args: ConnectArgs,
|
args: ConnectArgs,
|
||||||
_: (),
|
_: (),
|
||||||
|
|
|
@ -751,7 +751,7 @@ where
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn op_connect_tls<NP>(
|
pub async fn op_connect_tls<NP>(
|
||||||
state: Rc<RefCell<OpState>>,
|
state: Rc<RefCell<OpState>>,
|
||||||
args: ConnectTlsArgs,
|
args: ConnectTlsArgs,
|
||||||
_: (),
|
_: (),
|
||||||
|
|
Loading…
Reference in a new issue