#![forbid(unsafe_code, clippy::panic)]
#![warn(clippy::cognitive_complexity, rust_2018_idioms)]
#![doc = include_str!("../README.md")]
#![deprecated = "This crate has moved back to 0.x versioning. \
Please use the latest 0.x version on crates.io."]
mod macros;
mod request;
mod response;
mod server;
mod url;
mod util;
#[cfg(feature = "websocket")]
mod ws;
pub use request::Request;
pub use response::{Headers, Response, ResponseLike, DEFAULT_HTTP_VERSION};
pub use server::{Server, Stream, DEFAULT_BUFFER_SIZE};
pub use url::Url;
pub use util::{HttpVersion, Method};
#[cfg(feature = "websocket")]
pub type WebSocket<'a> = tungstenite::WebSocket<&'a mut Stream>;
#[cfg(feature = "tls")]
pub use native_tls::{Identity, TlsAcceptor};
pub type Result = std::io::Result<()>;