Skip to main content

ninep_ws

Function ninep_ws 

Source
pub async fn ninep_ws(
    __arg0: State<ServerState>,
    __arg1: Query<NinePQuery>,
    headers: HeaderMap,
    ws: WebSocketUpgrade,
) -> Response
Expand description

GET /9p — validate the mount ticket, then upgrade to a 9P-over-WS session.

The ticket is validated BEFORE the upgrade so an unauthenticated client gets a clean HTTP 401 rather than a dangling WebSocket. On success the session’s Subject is bound for the whole connection and enforced per-op by [MountBackend].