1
0
mirror of https://github.com/actix/actix-website synced 2025-02-09 06:45:37 +01:00

23 lines
389 B
Rust
Raw Normal View History

2019-06-13 17:10:51 -04:00
mod keep_alive;
mod keep_alive_tp;
2018-05-23 20:39:15 -07:00
mod signals;
mod ssl;
mod workers;
// <main>
2019-06-13 17:10:51 -04:00
use actix_web::{web, App, HttpResponse, HttpServer};
2018-05-23 20:39:15 -07:00
fn main() {
2019-06-13 17:10:51 -04:00
let sys = actix_rt::System::new("example");
2018-05-23 20:39:15 -07:00
2019-06-13 17:10:51 -04:00
HttpServer::new(|| {
App::new().route("/", web::get().to(|| HttpResponse::Ok()))
})
.bind("127.0.0.1:8088")
.unwrap()
.start();
2018-05-23 20:39:15 -07:00
let _ = sys.run();
}
// </main>