trust_dns_proto/https/mod.rs
1// Copyright 2015-2018 Benjamin Fry <benjaminfry@me.com>
2//
3// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
4// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5// http://opensource.org/licenses/MIT>, at your option. This file may not be
6// copied, modified, or distributed except according to those terms.
7
8//! TLS protocol related components for DNS over HTTPS (DoH)
9
10const MIME_APPLICATION_DNS: &str = "application/dns-message";
11const DNS_QUERY_PATH: &str = "/dns-query";
12
13mod error;
14mod https_client_stream;
15pub mod https_server;
16pub mod request;
17pub mod response;
18
19pub use self::error::{Error as HttpsError, Result as HttpsResult};
20
21pub use self::https_client_stream::{
22 HttpsClientConnect, HttpsClientResponse, HttpsClientStream, HttpsClientStreamBuilder,
23};