Skip to main content

handler_to_method_router

Function handler_to_method_router 

Source
pub fn handler_to_method_router(
    method: &str,
    handler_box: HandlerBox,
) -> MethodRouter
Expand description

Build an axum MethodRouter for a single registered route. Used by the runtime to construct the live router after each reload.