mirror of
https://github.com/actix/actix-website
synced 2025-02-02 20:29:03 +01:00
23 lines
389 B
Rust
23 lines
389 B
Rust
mod keep_alive;
|
|
mod keep_alive_tp;
|
|
mod signals;
|
|
mod ssl;
|
|
mod workers;
|
|
|
|
// <main>
|
|
use actix_web::{web, App, HttpResponse, HttpServer};
|
|
|
|
fn main() {
|
|
let sys = actix_rt::System::new("example");
|
|
|
|
HttpServer::new(|| {
|
|
App::new().route("/", web::get().to(|| HttpResponse::Ok()))
|
|
})
|
|
.bind("127.0.0.1:8088")
|
|
.unwrap()
|
|
.start();
|
|
|
|
let _ = sys.run();
|
|
}
|
|
// </main>
|