mod types;
mod util;
pub use types::*;
pub mod h1;
pub mod h2;
mod responder;
pub use responder::*;
pub use buffet;
pub use http;
pub mod error;
#[allow(async_fn_in_trait)] pub trait ServerDriver<OurEncoder>
where
OurEncoder: Encoder,
{
type Error: std::error::Error + 'static;
async fn handle(
&self,
req: Request,
req_body: &mut impl Body,
respond: Responder<OurEncoder, ExpectResponseHeaders>,
) -> Result<Responder<OurEncoder, ResponseDone>, Self::Error>;
}