how to migrate from serve_addr_handle in hyper 0.14.4? #2455
Unanswered
kushwahashiv
asked this question in
Q&A
Replies: 1 comment
-
If you want to easily listen to an address and have hyper handle that, then you probably could switch to using hyper::Server::bind(addr)
// .options(args)
.serve(make_service_fn(move |_socket_ref| async move {
// create a Service
// ...
Ok(svc)
})
.await; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to migrate below code to new hyper
0.14.4
versioncurrent dependencies
but facing challenges what is the best way to migrate this.
If anyone has done that already what are the best practices. If possible to keep it close to the above implementation would be great.
Also if there is any link would be helpful.
Thanks in advance :)
/Shiv
Beta Was this translation helpful? Give feedback.
All reactions