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