pub(crate) fn new(url: Uri, remote_insecure: bool) -> Result<Https> {
    let dest = match url.path().rsplit('/').next() {
      Some(d) => d,
      None => {
        return Err(anyhow!(
          "Cannot find infer name of the remote file by looking at {}",
          url.path()
        ))
      }
    };

    Ok(Https {
      destination: dest.to_string(),
      wasm_url: url,
      insecure: remote_insecure,
    })
  }
// Allocates a LocalWASM instance starting from the user
// provided URL
Allocates a LocalWASM instance starting from the user
provided URL
Allocates a LocalWASM instance starting from the user provided URL
pub(crate) fn new(url: Uri, remote_insecure: bool) -> Result<Https> {
    let dest = match url.path().rsplit('/').next() {
      Some(d) => d,
      None => {
        return Err(anyhow!(
          "Cannot find infer name of the remote file by looking at {}",
          url.path()
        ))
      }
    };
    Ok(Https {
      destination: dest.to_string(),
      wasm_url: url,
      insecure: remote_insecure,
    })
  }
pub ( crate ) fn new ( url : Uri , remote_insecure : bool ) -> Result < Https > { let dest = match url . path ( ) . rsplit ( '/' ) . next ( ) { Some ( d ) => d , None => { return Err ( anyhow ! ( " " url path ( ) ) ) } } ; Ok ( Https { destination : dest . to_string ( ) , wasm_url : url , insecure : remote_insecure , } ) }
Allocates a LocalWASM instance starting from the user
provided URL
Allocates a LocalWASM instance starting from the user provided URL
url
Uri
remote_insecure
bool
url
Uri
remote_insecure
bool