kohttp / io.github.rybalkinsd.kohttp.dsl / httpPost

httpPost

fun httpPost(client: Factory = defaultHttpClient, init: HttpPostContext.() -> Unit): Response

Method provides an synchronous DSL call of HTTP POST

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

HttpPostContext

Since
0.2.0

Author
sergey