Skip to main content

handle

Function handle 

Source
pub async fn handle(req: HttpRequest, state: Data<AppState>) -> HttpResponse
Expand description

GET /api/about

Handles three cases:

  1. No Authorization header or HELLO -> 401 with WWW-Authenticate
  2. SCRAM -> verify client proof, return 200 with Authentication-Info
  3. BEARER -> return about grid