1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-24 22:37:35 +02:00

handle http connections in different threads

This commit is contained in:
Nikolay Kim
2017-12-12 17:21:00 -08:00
parent 55818028cb
commit ab6efd2421
6 changed files with 394 additions and 117 deletions

View File

@ -42,7 +42,7 @@ Multiple applications could be served with one server:
use actix_web::*;
fn main() {
HttpServer::<TcpStream, SocketAddr, _>::new(|| vec![
HttpServer::<TcpStream, SocketAddr, _, _>::new(|| vec![
Application::new()
.prefix("/app1")
.resource("/", |r| r.f(|r| httpcodes::HTTPOk)),