MCPcopy Create free account
hub / github.com/actix/examples / hello

Function hello

shutdown-server/src/main.rs:6–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5#[get("/hello")]
6async fn hello() -> &'static str {
7 "Hello world!"
8}
9
10#[post("/stop/{graceful}")]
11async fn stop(Path(graceful): Path<bool>, stop_handle: web::Data<StopHandle>) -> HttpResponse {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected