We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service
Server::serve()
I would like to wrap a user supplied app, like a Router, for that purpose I would like to use ServiceBuilder.
Router
ServiceBuilder
The issue is that Server::serve() needs a service factory, like what can be produced with Router::into_make_service(), which isn't available for ServiceBuilder.
Router::into_make_service()
The solution I found is wrapping it in Shared. I believe some documentation in axum-server would help.
Shared
axum-server
See tokio-rs/axum#1203 for the original problem.
The text was updated successfully, but these errors were encountered:
I will add it for next release.
Sorry, something went wrong.
Added in 1a68546.
No branches or pull requests
I would like to wrap a user supplied app, like a
Router
, for that purpose I would like to useServiceBuilder
.The issue is that
Server::serve()
needs a service factory, like what can be produced withRouter::into_make_service()
, which isn't available forServiceBuilder
.The solution I found is wrapping it in
Shared
. I believe some documentation inaxum-server
would help.See tokio-rs/axum#1203 for the original problem.
The text was updated successfully, but these errors were encountered: