Build the HTTP remote configuration. `identity_hint` — explicit identity name to use (from `--identity` or `RemoteEntry.identity`). When `None`, falls back to URL-based inference.
(
&self,
remote_url: &str,
identity_hint: Option<&str>,
)
| 293 | /// `identity_hint` — explicit identity name to use (from `--identity` or |
| 294 | /// `RemoteEntry.identity`). When `None`, falls back to URL-based inference. |
| 295 | async fn build_remote_config( |
| 296 | &self, |
| 297 | remote_url: &str, |
| 298 | identity_hint: Option<&str>, |
| 299 | ) -> HttpRemoteConfig { |
| 300 | let config = HttpRemoteConfig::new() |
| 301 | .with_timeout(Duration::from_secs(self.timeout)) |
| 302 | .danger_accept_invalid_certs(self.insecure); |
| 303 | |
| 304 | crate::commands::auth::attach_identity(config, remote_url, identity_hint).await |
| 305 | } |
| 306 | |
| 307 | /// Display the dry run preview. |
| 308 | /// |