1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-30 00:14:58 +02:00

Merge remote-tracking branch 'origin/master' into on-connect-fix

This commit is contained in:
Rob Ede
2021-12-05 04:46:19 +00:00
233 changed files with 14067 additions and 5964 deletions

View File

@ -35,7 +35,7 @@ async fn main() -> std::io::Result<()> {
)
.service(web::resource("/test1.html").to(|| async { "Test\r\n" }))
})
.bind("127.0.0.1:8080")?
.bind(("127.0.0.1", 8080))?
.workers(1)
.run()
.await

View File

@ -9,6 +9,7 @@ use std::{any::Any, io, net::SocketAddr};
use actix_http::CloneableExtensions;
use actix_web::{rt::net::TcpStream, web, App, HttpServer};
#[allow(dead_code)]
#[derive(Debug, Clone)]
struct ConnectionInfo {
bind: SocketAddr,