kohttp / io.github.rybalkinsd.kohttp.dsl / httpHead

httpHead

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

Method provides an synchronous DSL call of HTTP HEAD

Parameters

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

Return

a Response instance.

Usage example with default defaultHttpClient:

See Also

Response

HttpHeadContext

Since
0.1.0

Author
sergey