Skip to main content

handle_shutdown

Function handle_shutdown 

Source
async fn handle_shutdown(headers: HeaderMap, body: Bytes) -> Response
Expand description

POST /auth/shutdown: end the server, as a termination signal does. The answer is sent first; the server leaves a moment later, by the same path as the signal (every request in flight and every agent is closed as it is then).