snowboard 1.0.4

DEPRECATED: moved back to 0.x versioning. See crates.io for latest 0.x.
Documentation
#![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")]
/// A WebSocket connection.
pub type WebSocket<'a> = tungstenite::WebSocket<&'a mut Stream>;

#[cfg(feature = "tls")]
// Re-export needed structs for `Server::new(...)` with TLS.
pub use native_tls::{Identity, TlsAcceptor};

/// A type alias for `std::io::Result<()>`
/// used in `Server::new()?.run(...)`.
///
/// `Server::run` returns type `!` (never) so using `Ok(())` is not needed.
pub type Result = std::io::Result<()>;