Conversation
|
This seems like a little bit of a footgun potentially. Using I'm also wondering whether / how to support Any comments / thoughts? |
|
Yeah, it buffers the whole requests. Another option is to instead drive all the extractors at the same time. But I'd expect something like We might also consider not using As for supporting Then again we probably do want to have a speicifc type for this, because if we implement both So I guess another type for this would be the way to go? Or just not do this at all and let people clone/try extract requests explicitly? |
|
I'm not sure about this. A possible other approach is to make it easy for handlers to accept a buffered body, and make it easy to run extractors on it. |
Motivation
Eithercan currently be used only forFromRequestPartsextractor. We might want to support extraction of different kinds of bodies. Example of a user wanting something like this is #3315Solution
Have
Eitherbuffer the whole body intoBytesand then try the extractors in turn.