Is there a `HeadersBuilder` `append` that accepts ...
# ktor
l
Is there a
HeadersBuilder
append
that accepts a
ContentType
rather than a
String
? Pretty sure it exists, but can't find it in the docs. I mean doing
append(HttpHeaders.ContentType, ContentType.Application.Json)
rather than
append(HttpHeaders.ContentType, "application/json")
a
There is no such overload. You can do
append(HttpHeaders.ContentType, ContentType.Application.Json.toString())
l
Ah ok. Easy enough. Could've sworn I had seen that. Perhaps people wrote their extension method to add that one