hey, ktor noob here. I'm thinking about adding a c...
# ktor
z
hey, ktor noob here. I'm thinking about adding a custom feature that will validate rest api dtos. I've read about pipelines and interceptors, but what I'm unclear on is the fact that this feature would be pretty dependent on coming after the content negotiation feature, since that's when deserialization happens. so two questions: 1) how do I make sure my interceptor happens at the correct time and 2) are there problems with receiving the request body twice (i.e. is there a stream involved somewhere that would need to be reset?)
Or would this be a job for a validating content converter?