simple handle
(req: HttpRequest)
| 10 | |
| 11 | /// simple handle |
| 12 | async fn index(req: HttpRequest) -> HttpResponse { |
| 13 | debug!("{req:?}"); |
| 14 | |
| 15 | HttpResponse::Ok().content_type(ContentType::html()).body( |
| 16 | "<!DOCTYPE html><html><body>\ |
| 17 | <p>Welcome to your TLS-secured homepage!</p>\ |
| 18 | </body></html>", |
| 19 | ) |
| 20 | } |
| 21 | |
| 22 | #[actix_web::main] |
| 23 | async fn main() -> std::io::Result<()> { |
nothing calls this directly
no outgoing calls
no test coverage detected