Skip to content

Provide a way to retrieve both the request parts and transformed body in a single extractor #1893

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

You must be logged in to vote

Parts doesn't implement FromRequestParts because it contains Extensions which cannot be cloned. So we'd have to remove the extensions which would make subsequent Extension extractors fail.

I recommend you extract the parts you need (Version, Method, HeaderMap, etc) directly.

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@davidpdrsn
Comment options

@Pzixel
Comment options

@davidpdrsn
Comment options

@Pzixel
Comment options

@davidpdrsn
Comment options

Answer selected by tony707
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1892 on March 28, 2023 07:57.