0
0
Fork 0
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:
Satya Rohith 2021-09-20 19:35:23 +05:30 committed by GitHub
parent 269bf380e0
commit 3708cbc600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -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>,

View file

@ -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,
_: (), _: (),

View file

@ -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,
_: (), _: (),