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