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

Function index

middleware/http-to-https/src/main.rs:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8#[get("/")]
9async fn index() -> String {
10 String::from("<html><head><title>FOO BAR</title></head><body><h1>FOO BAR</h1></body></html>")
11}
12
13#[actix_web::main]
14async fn main() -> std::io::Result<()> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected