pub(crate) const MIME_APPLICATION_DNS: &str = "application/dns-message";
pub const DEFAULT_DNS_QUERY_PATH: &str = "/dns-query";
pub(crate) mod error;
pub mod request;
pub mod response;
#[derive(Clone, Copy, Debug)]
pub enum Version {
#[cfg(feature = "__https")]
Http2,
#[cfg(feature = "__h3")]
Http3,
}
impl Version {
fn to_http(self) -> http::Version {
match self {
#[cfg(feature = "__https")]
Self::Http2 => http::Version::HTTP_2,
#[cfg(feature = "__h3")]
Self::Http3 => http::Version::HTTP_3,
}
}
}