[][src]Module hyper_trust_dns_connector::https

Module to use hyper-tls, needs "hyper-tls-connector" feature enabled

Example

use tokio::runtime::Runtime;
use hyper_trust_dns_connector::https::new_async_https_connector;
use hyper::{Client, Body};

let mut rt = Runtime::new().expect("couldn't create runtime");

let (https, background) = new_async_https_connector()
    .expect("couldn't create connector");
let client = Client::builder()
    .executor(rt.executor())
    .build::<_, Body>(https);

rt.spawn(background);

Enums

Error

Functions

new_async_https_connector

A helper function to create an https connector from hyper-tls and a dns task with the default configuration.