Skip to main content

request_ctx

Function request_ctx 

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

Build the request context and run the rest of the stack inside the task-local scope. Must be mounted inside MessagesManagerLayer and the auth layer so both extensions are populated.