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

Nick Halase

08/10/2022, 4:27 PM
Does the ktor-client ContentNegotiation plugin automatically add all registered types to the Accept header? I'm not configuring defaultRequest on my client, but when I make a request with the httpClient.get (i'm also using the Resources plugin for type-safe routing), and I log out the
call.request.accept()
value, it's a CSV of content types.
a

Aleksei Tirman [JB]

08/11/2022, 8:17 AM
n

Nick Halase

08/12/2022, 3:31 PM
Thanks, at least it's always in registration order with manual client additions up front.
4 Views