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>,
)
| 400 | /// `identity_hint` — explicit identity name to use (from `--identity` or |
| 401 | /// `RemoteEntry.identity`). When `None`, falls back to URL-based inference. |
| 402 | async fn build_remote_config( |
| 403 | &self, |
| 404 | remote_url: &str, |
| 405 | identity_hint: Option<&str>, |
| 406 | ) -> HttpRemoteConfig { |
| 407 | let config = HttpRemoteConfig::new() |
| 408 | .with_timeout(Duration::from_secs(self.timeout)) |
| 409 | .danger_accept_invalid_certs(self.insecure); |
| 410 | |
| 411 | crate::commands::auth::attach_identity(config, remote_url, identity_hint).await |
| 412 | } |
| 413 | |
| 414 | /// Display the dry run preview. |
| 415 | /// |