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

httpHeadAsync

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

Method provides an asynchronous DSL call of HTTP HEAD

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

HttpHeadContext

Since
0.10.0

Author
evgeny