mtp/mtp-webserver/src/lib.rs
Alex Emmet 00f0aaeeff
All checks were successful
CI / checks (push) Successful in 5m29s
[Add] TCP server to core MTP (HTTP/1.1 & HTTP/2) compatibility
2026-07-21 00:43:00 +02:00

26 lines
861 B
Rust

//! HTTP routing primitives and the combined MTP web-server API.
//!
//! The public routing API is transport-independent. The HTTP/3 driver is
//! intentionally kept behind the crate's implementation boundary so callers
//! do not need to depend on a particular QUIC implementation.
mod error;
mod h3;
mod http;
mod router;
mod server;
mod stream;
mod tcp;
mod transport;
pub use error::WebServerError;
#[cfg(feature = "pipes")]
pub use mtp_transport::TransportEvent;
pub use router::{DynamicHttpHandler, HttpHandler, RouteParams, Router, RouterError};
pub use server::{MTPWebServer, WebServerConfig, WebServerMetrics};
#[allow(deprecated)]
pub use stream::{Http3Request, Http3Response, HttpRequest, HttpResponse};
pub use transport::{
H3TransportConnection, H3TransportReceiver, H3TransportSender, WebMTPConnection,
WebMtpReceiver, WebMtpSender,
};