1
0
mirror of https://github.com/actix/actix-website synced 2024-12-02 19:52:23 +01:00
actix-website/content/docs/http_server_init.md
Elliot Jackson 69145efc1e
Fix nextup links (#153)
* Fix page weights

* Fix nextup link generation
2020-02-02 05:22:11 +09:00

457 B

title menu weight
Http Server Initialization docs_architecture 1020

Architecture overview

Below is a diagram of HttpServer initalization, which happens on the following code

#[actix_rt::main]
async fn main() -> std::io::Result<()> {
    HttpServer::new(|| {
        App::new()
            .route("/", web::to(|| HttpResponse::Ok()))
    })
    .bind("127.0.0.1:8088")?
    .run()
    .await
}