(req: HttpRequest)
| 12 | }; |
| 13 | |
| 14 | async 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")] |
| 25 | async fn main() -> eyre::Result<()> { |
nothing calls this directly
no outgoing calls
no test coverage detected