first commit
This commit is contained in:
commit
5692aa6d1d
70 changed files with 13939 additions and 0 deletions
12
odin-http/comparisons/empty-ok-all/rust/src/main.rs
Normal file
12
odin-http/comparisons/empty-ok-all/rust/src/main.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
use actix_web::{web, App, HttpServer};
|
||||
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
HttpServer::new(|| {
|
||||
App::new()
|
||||
.service(web::resource("/").to(|| async { "" }))
|
||||
})
|
||||
.bind(("127.0.0.1", 8080))?
|
||||
.run()
|
||||
.await
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue