1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-18 13:51:50 +01:00

update actix-web-in-http example

This commit is contained in:
Rob Ede 2022-03-05 23:43:31 +00:00
parent 8c2fad3164
commit 03456b8a33
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -18,7 +18,8 @@ async fn main() -> std::io::Result<()> {
HttpService::build()
// pass the app to service builder
// map_config is used to map App's configuration to ServiceBuilder
.finish(map_config(app, |_| AppConfig::default()))
// h1 will configure server to only use HTTP/1.1
.h1(map_config(app, |_| AppConfig::default()))
.tcp()
})?
.run()