INNER CODE UNIT · Rust
health
gluesql/glues · server/src/lib.rs:148
async fn health() -> StatusCode {
StatusCode::OK
}
async fn shutdown_signal() {
if let Err(err) = signal::ctrl_c().await {
error!("failed to install Ctrl+C handler: {err}");
return;
}
info!("shutting down");
}
async fn enforce_bearer(
token: Arc<String>,
req: Request<Body>,
next: Next,
) -> Result<Response, StatusCode> {