kohttp / io.github.rybalkinsd.kohttp.dsl.async / httpGetAsync

httpGetAsync

fun httpGetAsync(client: Factory = defaultHttpClient, init: HttpGetContext.() -> Unit): Deferred<Response>

Method provides an asynchronous DSL call of HTTP GET

Parameters

client - allow to use your own implementation of HttpClient. defaultHttpClient is used by default.

Return

a deferred Response instance.

Usage example with default defaultHttpClient:

See Also

Response

HttpGetContext

Since
0.4.0

Author
sergey