1
0
mirror of https://github.com/actix/actix-website synced 2025-02-02 12:19:04 +01:00
Jonas Fassbender 04f6f0bd02
Fixed keep-alive on response example (#316)
* fixed keep-alive on response example

* fixed dead code and unused variable errors
2023-03-03 15:07:26 +00:00

18 lines
373 B
Rust

pub mod keep_alive;
pub mod keep_alive_tp;
pub mod signals;
pub mod ssl;
pub mod workers;
// <main>
use actix_web::{web, App, HttpResponse, HttpServer};
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| App::new().route("/", web::get().to(HttpResponse::Ok)))
.bind(("127.0.0.1", 8080))?
.run()
.await
}
// </main>