RequestHandlerFn

Type Alias RequestHandlerFn 

Source
pub type RequestHandlerFn = dyn for<'req> Fn(Request<&'req str>, Arc<McpAppState>) -> BoxFutureResponse<'req> + Send + Sync;
Expand description

A handler function that processes an HTTP request and shared state, returning an async response future.