Closed sdeleuze closed 6 years ago
Please find bellow extensions that I had to create, I think these 2 methods should be available by default.
inline suspend fun <reified T : Any> CoroutineWebClient.CoroutineResponseSpec.body() = body(T::class.java)
fun CoroutineWebClient.RequestHeadersUriSpec<*>.uri(uri: String) = uri(URI(uri))
Fixed in 0.3.1
Please find bellow extensions that I had to create, I think these 2 methods should be available by default.
inline suspend fun <reified T : Any> CoroutineWebClient.CoroutineResponseSpec.body() = body(T::class.java)
fun CoroutineWebClient.RequestHeadersUriSpec<*>.uri(uri: String) = uri(URI(uri))