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

brabo-hi

01/26/2022, 9:14 PM
Hi, on ktor
1.x
we could do
<http://client.post|client.post><MyResponseType>(""){}
but it
2.x
we can’t specify the return type directly?
r

Rustam Siniukov

01/26/2022, 11:01 PM
in 2.0 you should use
<http://client.post|client.post>("").body<MyResponseType>()
2
2 Views