Skip to content

Route and service types #346

Answered by davidpdrsn
kellytk asked this question in Q&A
Sep 25, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

You can make a handler that calls a service and returns it's response. The most common way is some_service.oneshot(request).await but there are a number useful methods on tower::ServiceExt.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kellytk
Comment options

@davidpdrsn
Comment options

@kellytk
Comment options

Answer selected by davidpdrsn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants