mirror of
https://github.com/actix/actix-web.git
synced 2024-11-23 01:51:11 +00:00
update actix-web-in-http example
This commit is contained in:
parent
8c2fad3164
commit
03456b8a33
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ async fn main() -> std::io::Result<()> {
|
||||||
HttpService::build()
|
HttpService::build()
|
||||||
// pass the app to service builder
|
// pass the app to service builder
|
||||||
// map_config is used to map App's configuration to ServiceBuilder
|
// 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()
|
.tcp()
|
||||||
})?
|
})?
|
||||||
.run()
|
.run()
|
||||||
|
|
Loading…
Reference in a new issue