fn try_rebuild_clients(configuration: &mut Configuration) {
        if !configuration.proxy.is_empty()
            || configuration.timeout != timeout()
            || configuration.user_agent != user_agent()
            || configuration.redirects
            || configuration.insecure
            || !configuration.headers.is_empty()
            || configuration.resumed
        {
            if configuration.proxy.is_empty() {
                configuration.client = client::initialize(
                    configuration.timeout,
                    &configuration.user_agent,
                    configuration.redirects,
                    configuration.insecure,
                    &configuration.headers,
                    None,
                )
                .expect("Could not rebuild client")
            } else {
                configuration.client = client::initialize(
                    configuration.timeout,
                    &configuration.user_agent,
                    configuration.redirects,
                    configuration.insecure,
                    &configuration.headers,
                    Some(&configuration.proxy),
                )
                .expect("Could not rebuild client")
            }
        }

        if !configuration.replay_proxy.is_empty() {
            // only set replay_client when replay_proxy is set
            configuration.replay_client = Some(
                client::initialize(
                    configuration.timeout,
                    &configuration.user_agent,
                    configuration.redirects,
                    configuration.insecure,
                    &configuration.headers,
                    Some(&configuration.replay_proxy),
                )
                .expect("Could not rebuild client"),
            );
        }
    }
/// this function determines if we've gotten a Client configuration change from
/// either the config file or command line arguments; if we have, we need to rebuild
/// the client and store it in the config struct
this function determines if we've gotten a Client configuration change from
either the config file or command line arguments; if we have, we need to rebuild
the client and store it in the config struct
this function determines if we ' ve gotten a Client configuration change from either the config file or command line arguments ; if we have we need to rebuild the client and store it in the config struct
fn try_rebuild_clients(configuration: &mut Configuration) {
        if !configuration.proxy.is_empty()
            || configuration.timeout != timeout()
            || configuration.user_agent != user_agent()
            || configuration.redirects
            || configuration.insecure
            || !configuration.headers.is_empty()
            || configuration.resumed
        {
            if configuration.proxy.is_empty() {
                configuration.client = client::initialize(
                    configuration.timeout,
                    &configuration.user_agent,
                    configuration.redirects,
                    configuration.insecure,
                    &configuration.headers,
                    None,
                )
                .expect("Could not rebuild client")
            } else {
                configuration.client = client::initialize(
                    configuration.timeout,
                    &configuration.user_agent,
                    configuration.redirects,
                    configuration.insecure,
                    &configuration.headers,
                    Some(&configuration.proxy),
                )
                .expect("Could not rebuild client")
            }
        }
        if !configuration.replay_proxy.is_empty() {
            // only set replay_client when replay_proxy is set
            configuration.replay_client = Some(
                client::initialize(
                    configuration.timeout,
                    &configuration.user_agent,
                    configuration.redirects,
                    configuration.insecure,
                    &configuration.headers,
                    Some(&configuration.replay_proxy),
                )
                .expect("Could not rebuild client"),
            );
        }
    }
fn try_rebuild_clients ( configuration : & mut Configuration ) { if ! configuration . proxy . is_empty ( ) || configuration . timeout != timeout ( ) || configuration . user_agent != user_agent ( ) || configuration . redirects || configuration . insecure || ! configuration . headers . is_empty ( ) || configuration . resumed { if configuration . proxy . is_empty ( ) { configuration . client = client :: initialize ( configuration . timeout , & configuration . user_agent , configuration . redirects , configuration . insecure , & configuration . headers , None , ) . expect ( " " ) } else { configuration . client = client :: initialize ( configuration . timeout , & configuration . user_agent , configuration . redirects , configuration . insecure , & configuration . headers , Some ( & configuration . proxy ) , ) . expect ( " " ) } } if ! configuration . replay_proxy . is_empty ( ) { // only set replay_client when replay_proxy is set configuration . replay_client = Some ( client :: initialize ( configuration . timeout , & configuration . user_agent , configuration . redirects , configuration . insecure , & configuration . headers , Some ( & configuration . replay_proxy ) , ) . expect ( " " ) , ) ; } }
this function determines if we've gotten a Client configuration change from
either the config file or command line arguments; if we have, we need to rebuild
the client and store it in the config struct
this function determines if we ' ve gotten a Client configuration change from either the config file or command line arguments ; if we have we need to rebuild the client and store it in the config struct
configuration
&mut Configuration