HttpHandler

Trait HttpHandler 

Source
pub trait HttpHandler:
    Debug
    + Send
    + Sync {
    // Required method
    fn handle(
        &self,
        request: HttpHandlerRequest,
    ) -> Pin<Box<dyn Future<Output = Result<HttpHandlerResponse, String>> + Send + '_>>;
}

Required Methods§

Source

fn handle( &self, request: HttpHandlerRequest, ) -> Pin<Box<dyn Future<Output = Result<HttpHandlerResponse, String>> + Send + '_>>

Implementors§