https://kotlinlang.org logo
#ktor
Title
# ktor
b

Brent Beardsley

05/05/2022, 8:44 PM
hey I'm using ktor 2.0 and am making a plugin to piggy back off the content negotiation plugin and would like to find out which content-types are installed? So far I've only been able to accomplish it using reflection but that won't fly long-term. I started with
application.pluginOrNull(ContentNegotation)
and I can see that it's installed I just can't get to it's config and registrations without reflection that I can see.
a

Aleksei Tirman [JB]

05/07/2022, 9:43 AM
I don’t think it’s possible to do without reflection.