kohttp / io.github.rybalkinsd.kohttp.ext / kotlin.String

Extensions for kotlin.String

asyncHttpGet

fun String.asyncHttpGet(client: Factory = defaultHttpClient): Deferred<Response>

httpGet

fun String.httpGet(client: Factory = defaultHttpClient): Response

This extension performs an GET request with the provided String url.

httpGetAsync

fun String.httpGetAsync(client: Factory = defaultHttpClient): Deferred<Response>

Async version of http GET request with the provided String url. this function runs a new coroutine with Unconfined CoroutineDispatcher.