pub fn build<F>(&self, request_builder: F) -> HttpService
    where
        F: Fn(Vec<u8>) -> hyper::Request<Vec<u8>> + Sync + Send + 'static,
    {
        let mut http = HttpConnector::new(self.threads);
        http.enforce_http(false);
        let tls = native_tls::TlsConnector::builder()
            .danger_accept_invalid_certs(!self.verify_certificate)
            .build()
            .expect("TLS initialization failed");
        let https = HttpsConnector::from((http, tls));
        let client = hyper::Client::builder()
            .executor(DefaultExecutor::current())
            .build(https);
        let inner = InstrumentedHttpService::new(Client::with_client(client));
        HttpService {
            inner,
            request_builder: Arc::new(Box::new(request_builder)),
        }
    }
/// Build the configured `HttpService`
Build the configured `HttpService`
Build the configured ` HttpService `
pub fn build<F>(&self, request_builder: F) -> HttpService
    where
        F: Fn(Vec<u8>) -> hyper::Request<Vec<u8>> + Sync + Send + 'static,
    {
        let mut http = HttpConnector::new(self.threads);
        http.enforce_http(false);
        let tls = native_tls::TlsConnector::builder()
            .danger_accept_invalid_certs(!self.verify_certificate)
            .build()
            .expect("TLS initialization failed");
        let https = HttpsConnector::from((http, tls));
        let client = hyper::Client::builder()
            .executor(DefaultExecutor::current())
            .build(https);
        let inner = InstrumentedHttpService::new(Client::with_client(client));
        HttpService {
            inner,
            request_builder: Arc::new(Box::new(request_builder)),
        }
    }
pub fn build < F > ( & self , request_builder : F ) -> HttpService where F : Fn ( Vec < u8 > ) -> hyper :: Request < Vec < u8 > > + Sync + Send + ' static , { let mut http = HttpConnector :: new ( self . threads ) ; http . enforce_http ( false ) ; let tls = native_tls :: TlsConnector :: builder ( ) . danger_accept_invalid_certs ( ! self . verify_certificate ) . build ( ) . expect ( " " ) ; let https = HttpsConnector :: from ( ( http , tls ) ) ; let client = hyper :: Client :: builder ( ) . executor ( DefaultExecutor :: current ( ) ) . build ( https ) ; let inner = InstrumentedHttpService :: new ( Client :: with_client ( client ) ) ; HttpService { inner , request_builder : Arc :: new ( Box :: new ( request_builder ) ) , } }
Build the configured `HttpService`
Build the configured ` HttpService `
&self
request_builder
F