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>,
)
| 267 | /// `identity_hint` — explicit identity name to use (from `--identity` or |
| 268 | /// `RemoteEntry.identity`). When `None`, falls back to URL-based inference. |
| 269 | async fn build_remote_config( |
| 270 | &self, |
| 271 | remote_url: &str, |
| 272 | identity_hint: Option<&str>, |
| 273 | ) -> HttpRemoteConfig { |
| 274 | let config = HttpRemoteConfig::new() |
| 275 | .with_timeout(Duration::from_secs(self.timeout)) |
| 276 | .danger_accept_invalid_certs(self.insecure); |
| 277 | |
| 278 | crate::commands::auth::attach_identity(config, remote_url, identity_hint).await |
| 279 | } |
| 280 | |
| 281 | /// Display the dry run preview. |
| 282 | fn display_dry_run( |