kohttp / io.github.rybalkinsd.kohttp.dsl

Package io.github.rybalkinsd.kohttp.dsl

Functions

httpDelete

fun httpDelete(client: Factory = defaultHttpClient, init: HttpDeleteContext.() -> Unit): Response

Method provides an synchronous DSL call of HTTP DELETE

httpGet

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

Method provides an synchronous DSL call of HTTP GET

httpHead

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

Method provides an synchronous DSL call of HTTP HEAD

httpPatch

fun httpPatch(client: Factory = defaultHttpClient, init: HttpPatchContext.() -> Unit): Response

Method provides an synchronous DSL call of HTTP PATCH

httpPost

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

Method provides an synchronous DSL call of HTTP POST

httpPut

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

Method provides an synchronous DSL call of HTTP PUT

upload

fun upload(client: Factory = defaultHttpClient, init: UploadContext.() -> Unit): Response

Method provides a synchronous DSL call of HTTP POST to UPLOAD file