validation: mtls is handled at a higher level

This commit is contained in:
2024-12-10 21:25:53 -08:00
parent 03e71f09fc
commit 1975f3ea4a
3 changed files with 3 additions and 104 deletions

@ -79,20 +79,10 @@ macro_rules! action{
};
}
impl Context{
pub fn new(
base_url:String,
// cert:reqwest::Certificate,
// identity:reqwest::Identity,
)->reqwest::Result<Self>{
pub fn new(base_url:String)->reqwest::Result<Self>{
Ok(Self{
base_url,
client:reqwest::Client::builder()
.use_rustls_tls()
//.tls_built_in_root_certs(false)
//.add_root_certificate(cert)
//.identity(identity)
.https_only(true)
.build()?,
client:reqwest::Client::new(),
})
}
async fn get(&self,url:impl reqwest::IntoUrl)->Result<reqwest::Response,reqwest::Error>{