Skip to main content

BoxHandler

Type Alias BoxHandler 

Source
pub type BoxHandler = Arc<dyn Fn(CorrelationContext, HeaderMap, Method, String, Vec<u8>) -> BoxFuture<'static, Response<String>> + Send + Sync>;
Expand description

Low-level route handler used by the dispatcher: receives the prepared context plus raw headers, method, path, and body bytes, and returns a complete HTTP response.

Aliased Type§

pub struct BoxHandler { /* private fields */ }