request

context(r: Raise<E>)
inline suspend fun <reified T> request(method: HttpMethod, uri: String, crossinline builder: HttpRequestBuilder.() -> Unit = {}): T(source)

Sends method to uri with whatever builder sets, and decodes the body as T, raising the mapped E at each failure point.