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

Function index

https-tls/cert-watch/src/main.rs:17–25  ·  view source on GitHub ↗
(req: HttpRequest)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected