mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05: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
|
||||
/// that there might be another type alias pointing to a `Option<Vec<String>>`, which
|
||||
/// would override previously used alias.
|
||||
pub struct UnsafelyIgnoreCertificateErrors(Option<Vec<String>>);
|
||||
pub struct UnsafelyIgnoreCertificateErrors(pub Option<Vec<String>>);
|
||||
|
||||
pub fn init<P: NetPermissions + 'static>(
|
||||
root_cert_store: Option<RootCertStore>,
|
||||
|
|
|
@ -278,13 +278,13 @@ where
|
|||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
struct ConnectArgs {
|
||||
pub struct ConnectArgs {
|
||||
transport: String,
|
||||
#[serde(flatten)]
|
||||
transport_args: ArgsEnum,
|
||||
}
|
||||
|
||||
async fn op_connect<NP>(
|
||||
pub async fn op_connect<NP>(
|
||||
state: Rc<RefCell<OpState>>,
|
||||
args: ConnectArgs,
|
||||
_: (),
|
||||
|
|
|
@ -751,7 +751,7 @@ where
|
|||
})
|
||||
}
|
||||
|
||||
async fn op_connect_tls<NP>(
|
||||
pub async fn op_connect_tls<NP>(
|
||||
state: Rc<RefCell<OpState>>,
|
||||
args: ConnectTlsArgs,
|
||||
_: (),
|
||||
|
|
Loading…
Reference in a new issue