mirror of
https://github.com/actix/actix-website
synced 2025-02-17 10:13:31 +01:00
425 B
425 B
title |
---|
HTTP Server Initialization |
Architecture overview
Below is a diagram of HttpServer initialization, which happens on the following code
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
App::new()
.route("/", web::to(|| HttpResponse::Ok()))
})
.bind(("127.0.0.1", 8080))?
.run()
.await
}