Skip to content

some questiones about the Service implemention of Router #1968

Answered by davidpdrsn
HunterGitHub asked this question in Q&A
Discussion options

You must be logged in to vote

maybe it can be changed to type Response = Response<B>

That's not possible because we cannot struct a B, so how would we make the response?

Response::new(???)

Therefore the response body type must be type erased so we can combine multiple types that we can construct.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@HunterGitHub
Comment options

@HunterGitHub
Comment options

@davidpdrsn
Comment options

@HunterGitHub
Comment options

Answer selected by HunterGitHub
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
Converted from issue

This discussion was converted from issue #1967 on April 27, 2023 09:42.