mirror of
https://github.com/actix/actix-website
synced 2025-06-27 07:29:02 +02:00
migrate to docusaurus (v2) (#266)
Co-authored-by: ibraheemdev <ibrah1440@gmail.com>
This commit is contained in:
22
docs/http_server_init.md
Normal file
22
docs/http_server_init.md
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
title: HTTP Server Initialization
|
||||
---
|
||||
|
||||
# Architecture overview
|
||||
|
||||
Below is a diagram of HttpServer initialization, which happens on the following code
|
||||
|
||||
```rust
|
||||
#[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
|
||||
}
|
||||
```
|
||||
|
||||

|
Reference in New Issue
Block a user