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

Package io.github.rybalkinsd.kohttp.dsl.async

Functions

asyncHttpGet

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

httpDeleteAsync

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

Method provides an asynchronous DSL call of HTTP DELETE

httpGetAsync

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

Method provides an asynchronous DSL call of HTTP GET

httpHeadAsync

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

Method provides an asynchronous DSL call of HTTP HEAD

httpPatchAsync

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

Method provides an asynchronous DSL call of HTTP PATCH

httpPostAsync

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

Method provides an asynchronous DSL call of HTTP POST

httpPutAsync

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

Method provides an asynchronous DSL call of HTTP PUT

uploadAsync

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

Method provides an asynchronous DSL call of HTTP POST to UPLOAD file