pub fn finish(self) -> Client {
        let connector = if let Some(connector) = self.connector {
            connector
        } else {
            let mut connector = Connector::new();
            if let Some(val) = self.max_http_version {
                connector = connector.max_http_version(val)
            };
            if let Some(val) = self.conn_window_size {
                connector = connector.initial_connection_window_size(val)
            };
            if let Some(val) = self.stream_window_size {
                connector = connector.initial_window_size(val)
            };
            RefCell::new(
                Box::new(ConnectorWrapper(connector.finish())) as Box<dyn Connect>
            )
        };
        let config = ClientConfig {
            headers: self.headers,
            timeout: self.timeout,
            connector,
        };
        Client(Rc::new(config))
    }
/// Finish build process and create `Client` instance.
Finish build process and create `Client` instance.
Finish build process and create ` Client ` instance .
pub fn finish(self) -> Client {
        let connector = if let Some(connector) = self.connector {
            connector
        } else {
            let mut connector = Connector::new();
            if let Some(val) = self.max_http_version {
                connector = connector.max_http_version(val)
            };
            if let Some(val) = self.conn_window_size {
                connector = connector.initial_connection_window_size(val)
            };
            if let Some(val) = self.stream_window_size {
                connector = connector.initial_window_size(val)
            };
            RefCell::new(
                Box::new(ConnectorWrapper(connector.finish())) as Box<dyn Connect>
            )
        };
        let config = ClientConfig {
            headers: self.headers,
            timeout: self.timeout,
            connector,
        };
        Client(Rc::new(config))
    }
pub fn finish ( self ) -> Client { let connector = if let Some ( connector ) = self . connector { connector } else { let mut connector = Connector :: new ( ) ; if let Some ( val ) = self . max_http_version { connector = connector . max_http_version ( val ) } ; if let Some ( val ) = self . conn_window_size { connector = connector . initial_connection_window_size ( val ) } ; if let Some ( val ) = self . stream_window_size { connector = connector . initial_window_size ( val ) } ; RefCell :: new ( Box :: new ( ConnectorWrapper ( connector . finish ( ) ) ) as Box < dyn Connect > ) } ; let config = ClientConfig { headers : self . headers , timeout : self . timeout , connector , } ; Client ( Rc :: new ( config ) ) }
Finish build process and create `Client` instance.
Finish build process and create ` Client ` instance .
self
self