Skip to main content

route

Function route 

Source
pub async fn route(
    __arg0: State<Arc<AppState>>,
    req: Request,
    next: Next,
) -> Response
Expand description

Middleware: forward a request to the node that owns its agent, or serve it here. A pass-through when sharding is off, the request carries no resolvable agent, or we already own it.