pub fn master_host(url: &str, mode: TlsMode) -> Result<String, AppError>Expand description
Checks [worker] master_url and returns its host: an https:// URL with a host in app
mode (the master’s certificate must name the host), an http:// one in mesh mode.
§Errors
AppError::BadArgument for anything else, saying what is expected.