The HTTP remote config from the request knobs + the client's auth headers.
(
timeout_secs: u64,
insecure: bool,
auth_headers: &HashMap<String, String>,
)
| 141 | /// The HTTP remote config from the request knobs + the client's auth |
| 142 | /// headers. |
| 143 | fn remote_config( |
| 144 | timeout_secs: u64, |
| 145 | insecure: bool, |
| 146 | auth_headers: &HashMap<String, String>, |
| 147 | ) -> HttpRemoteConfig { |
| 148 | let mut config = HttpRemoteConfig::new() |
| 149 | .with_timeout(Duration::from_secs(timeout_secs)) |
| 150 | .danger_accept_invalid_certs(insecure); |
| 151 | for (name, value) in auth_headers { |
| 152 | config = config.with_header(name.clone(), value.clone()); |
| 153 | } |
| 154 | config |
| 155 | } |
| 156 | |
| 157 | /// The local `build_view_chain` — the ancestor chain, root → leaf, with |
| 158 | /// the cycle guard. |
no test coverage detected