kohttp / io.github.rybalkinsd.kohttp.dsl / httpPut

httpPut

fun httpPut(client: Factory = defaultHttpClient, init: HttpPutContext.() -> Unit): Response

Method provides an synchronous DSL call of HTTP PUT

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

HttpPutContext

Since
0.2.0

Author
sergey