#![doc = include_str!("../README.md")]
#![deny(missing_docs)]
use async_lock::RwLock;
use std::{collections::HashMap, sync::Arc};
#[cfg(feature = "auth")]
pub mod auth;
pub mod errors;
pub mod listener;
pub mod request;
pub mod response;
pub mod security;
pub mod server;
#[cfg(test)]
mod tests;
pub mod utils;
pub mod virtual_host;
pub type VetisResult<T> = Result<T, crate::errors::VetisError>;
pub type VetisRwLock<T> = RwLock<T>;
pub type VetisVirtualHosts<T> = Arc<VetisRwLock<HashMap<(Arc<str>, u16), T>>>;
pub use request::Request;
pub use response::Response;