I may have missed something, how do you do a post ...
# ktor
r
I may have missed something, how do you do a post request without expecting a response body with the Http client?
<http://client.post|client.post><Unit>(...)
or something like that?
đź‘Ś 1
Why don’t we have some extensions like
suspend inline fun HttpClient.verb(...) = verb<Unit>(...)
?
g
Maybe just HttpResponse?
r
I don’t need that either. It just works or it throws
BadResponseStatusException
, that’s enough information
I just put
...): Unit =
at the end of my call wrapper. Would still prefer not to have to specify
Unit
đź‘Ť 1
b
It’s relatively uncommon to make a network request without wanting the content back. As such, I don’t see much reason for the library to provide extensions for such a small use case when it’s already covered by 4 characters
Unit