esp_idf_svc::http::server

Trait Middleware

Source
pub trait Middleware<C, H>: Send
where C: Connection, H: Handler<C>,
{ type Error: Debug; // Required method fn handle(&self, connection: &mut C, handler: &H) -> Result<(), Self::Error>; // Provided method fn compose(self, handler: H) -> CompositeHandler<Self, H> where Self: Sized { ... } }

Required Associated Types§

Source

type Error: Debug

Required Methods§

Source

fn handle(&self, connection: &mut C, handler: &H) -> Result<(), Self::Error>

Provided Methods§

Source

fn compose(self, handler: H) -> CompositeHandler<Self, H>
where Self: Sized,

Implementors§