1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-22 17:41:11 +00: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()