Hi, in the ContentNegotiation plugin of Ktor 1.x the ContentConverter interface had a method with the following signature:
convertForSend(
context: PipelineContext<Any, ApplicationCall>,
contentType: ContentType,
value: Any
): Any?
For my use case, the context parameter was essential. In Ktor 2.x the signature changed completely and I no longer have access to the call context when serializing:
serializeNullable(
contentType: ContentType,
charset: Charset,
typeInfo: TypeInfo,
value: Any?
): OutgoingContent?
Is there any way to access the call context in Ktor 2.0?