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

Function index

https-tls/hot-reload/src/main.rs:14–22  ·  view source on GitHub ↗
(req: HttpRequest)

Source from the content-addressed store, hash-verified

12};
13
14async fn index(req: HttpRequest) -> HttpResponse {
15 tracing::debug!("{req:?}");
16
17 HttpResponse::Ok().content_type(ContentType::html()).body(
18 "<!DOCTYPE html><html><body>\
19 <p>Welcome to your TLS-secured homepage!</p>\
20 </body></html>",
21 )
22}
23
24#[tokio::main(flavor = "current_thread")]
25async fn main() -> eyre::Result<()> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected