mod body_wrapper;
mod connection;
mod error;
mod frame;
#[cfg(feature = "unstable")]
pub mod quic_varint;
#[cfg(not(feature = "unstable"))]
pub(crate) mod quic_varint;
mod settings;
#[cfg(test)]
mod tests;
#[derive(thiserror::Error, Debug)]
#[non_exhaustive]
pub enum H3Error {
#[error(transparent)]
Protocol(#[from] H3ErrorCode),
#[error(transparent)]
Io(#[from] std::io::Error),
}
#[cfg(feature = "unstable")]
pub use body_wrapper::H3Body;
#[cfg(not(feature = "unstable"))]
pub(crate) use body_wrapper::H3Body;
pub use connection::{H3Connection, H3StreamResult, UniStreamResult};
pub use error::H3ErrorCode;
pub(crate) use frame::UniStreamType;
#[cfg(feature = "unstable")]
pub use frame::{ActiveFrame, Frame, FrameDecodeError, FrameStream};
#[cfg(not(feature = "unstable"))]
pub(crate) use frame::{Frame, FrameDecodeError, FrameStream};
pub(crate) use settings::H3Settings;
pub(crate) const MAX_BUFFER_SIZE: usize = 1024 * 10;