#![forbid(missing_docs)]
#![forbid(unsafe_code)]
#![doc = include_str!("../README.md")]
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, TlsStream};
pub type Result = std::io::Result<()>;