pub fn new() -> crate::error::Result<Self> {
        // Setup the shared HTTP(S) client
        let mut http = HttpConnector::new();
        http.enforce_http(false);

        let mut tls_builder = TlsConnector::builder();
        // yay fucking self-signed certs
        let _ = tls_builder.danger_accept_invalid_certs(true);
        let tls = tls_builder.build()?;

        let https = HttpsConnector::from((http, tls.into()));
        let client = Client::builder().build::<_, Body>(https);
        let rt = Runtime::new()?;

        Ok(Self { rt, client })
    }
/// Create a new `EchoRuntime`
///
/// # Errors
///
Create a new `EchoRuntime`
Create a new ` EchoRuntime `
pub fn new() -> crate::error::Result<Self> {
        // Setup the shared HTTP(S) client
        let mut http = HttpConnector::new();
        http.enforce_http(false);
        let mut tls_builder = TlsConnector::builder();
        // yay fucking self-signed certs
        let _ = tls_builder.danger_accept_invalid_certs(true);
        let tls = tls_builder.build()?;
        let https = HttpsConnector::from((http, tls.into()));
        let client = Client::builder().build::<_, Body>(https);
        let rt = Runtime::new()?;
        Ok(Self { rt, client })
    }
pub fn new ( ) -> crate :: error :: Result < Self > { // Setup the shared HTTP(S) client let mut http = HttpConnector :: new ( ) ; http . enforce_http ( false ) ; let mut tls_builder = TlsConnector :: builder ( ) ; // yay fucking self-signed certs let _ = tls_builder . danger_accept_invalid_certs ( true ) ; let tls = tls_builder . build ( ) ? ; let https = HttpsConnector :: from ( ( http , tls . into ( ) ) ) ; let client = Client :: builder ( ) . build :: < _ , Body > ( https ) ; let rt = Runtime :: new ( ) ? ; Ok ( Self { rt , client } ) }
Create a new `EchoRuntime`
Create a new ` EchoRuntime `
errors
None