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>,
)
| 301 | /// `identity_hint` — explicit identity name to use (from `--identity` or |
| 302 | /// `RemoteEntry.identity`). When `None`, falls back to URL-based inference. |
| 303 | async fn build_remote_config( |
| 304 | &self, |
| 305 | remote_url: &str, |
| 306 | identity_hint: Option<&str>, |
| 307 | ) -> HttpRemoteConfig { |
| 308 | let config = HttpRemoteConfig::new() |
| 309 | .with_timeout(Duration::from_secs(self.timeout)) |
| 310 | .danger_accept_invalid_certs(self.insecure); |
| 311 | |
| 312 | crate::commands::auth::attach_identity(config, remote_url, identity_hint).await |
| 313 | } |
| 314 | |
| 315 | /// Display the dry run preview. |
| 316 | /// |