#![doc = include_str!("../README.md")]
mod config;
mod connection;
mod hpack_decoder;
mod hpack_encoder;
mod http2;
mod huffman;
mod macros;
#[doc(hidden)]
pub mod dispatch;
#[doc(hidden)]
pub mod error;
#[doc(hidden)]
pub mod response_end;
pub mod status;
pub use config::{Config, ConfigedServer};
#[doc(hidden)]
pub use connection::local_build_response;
#[doc(hidden)]
pub use http2::ReplyEncode;
pub type Response<Reply> = Result<Reply, status::Status>;
#[doc(hidden)]
pub trait PajamaxService {
fn route(&self, path: &[u8]) -> Option<usize>;
fn handle(&self, req_disc: usize, req_buf: &[u8], stream_id: u32) -> Result<(), error::Error>;
fn is_dispatch_mode(&self) -> bool;
}