#![forbid(unsafe_code)]
#![deny(
clippy::dbg_macro,
missing_copy_implementations,
rustdoc::missing_crate_level_docs,
missing_debug_implementations,
nonstandard_style,
unused_qualifications
)]
#![warn(missing_docs, clippy::pedantic, clippy::perf, clippy::cargo)]
#![allow(clippy::must_use_candidate, clippy::module_name_repetitions)]
mod received_body;
pub use received_body::ReceivedBody;
#[cfg(feature = "unstable")]
pub use received_body::ReceivedBodyState;
mod error;
pub use error::{Error, Result};
mod conn;
pub use conn::Conn;
mod connection_status;
pub use connection_status::ConnectionStatus;
mod synthetic;
pub use synthetic::Synthetic;
mod upgrade;
pub use upgrade::Upgrade;
pub use stopper::Stopper;
mod mut_cow;
pub(crate) use mut_cow::MutCow;
mod util;
mod body;
pub use body::Body;
mod state_set;
pub use state_set::StateSet;
mod headers;
pub use headers::Headers;
mod header_name;
pub use header_name::{HeaderName, KnownHeaderName};
mod header_values;
pub use header_values::HeaderValues;
mod header_value;
pub use header_value::HeaderValue;
mod status;
pub use status::Status;
mod method;
pub use method::Method;
mod version;
pub use version::Version;
pub mod transport;
pub const SERVICE_UNAVAILABLE: &[u8] = b"HTTP/1.1 503 Service Unavailable\r
Connection: close\r
Content-Length: 0\r
Retry-After: 60\r
\r\n";
#[cfg(feature = "http-compat")]
mod http_compat;