mirror of
https://github.com/actix/actix-website
synced 2025-02-02 12:19:04 +01:00
18 lines
376 B
Rust
18 lines
376 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>
|