One option that just came into my mind is an CN-in...
# ktor
o
One option that just came into my mind is an CN-interceptor.
Copy code
install(ContentNegotiation) {
   …
   intercept<Parameters> {
      // called when instance of Parameters is being sent (before transform) or received (after transform)
   }
   intercept<Entity> {
   // called when instance of Entity (or derived) is being processed
   }
   intercept<Any> {
   // any instance, called if more specific type interceptor is not found. Or may be call all matching interceptors
   }
}
👍 1
@wouterdoeland would it work for your use case?