Hey. I’m on ktor `1.4` and I’m trying to read an a...
# ktor
j
Hey. I’m on ktor
1.4
and I’m trying to read an arbitrary response back from the ktor http client and return it from my ktor server, but I’m having trouble as the type that could be returned back might change (e.g. I can’t pin it down to
<http://httpClient.post|httpClient.post><SpecificType>()
) is there a way to return an arbitrary type? Also right now my code seems to not be passing forward the return type of the httpClient to the server. Code in thread ->
example code
update; I have figured it out, after getting some sleep :D -
<http://httpClient.post|httpClient.post><HttpResponse>()