kohttp / io.github.rybalkinsd.kohttp.dsl.context / HttpPostContext

HttpPostContext

open class HttpPostContext : HttpContext

Constructors

<init>

HttpPostContext(method: Method = POST)

Inherited Properties

host

var host: String

path

var path: String?

port

var port: Int?

scheme

var scheme: String

Functions

body

fun body(contentType: String? = null, init: BodyContext.() -> RequestBody): Unit

makeBody

open fun makeBody(): RequestBody

multipartBody

fun multipartBody(contentType: String? = null, init: MultipartBodyContext.() -> Unit): Unit

Inherited Functions

header

open fun header(init: HeaderContext.() -> Unit): Unit

makeHeaders

open fun makeHeaders(): Builder

makeRequest

open fun makeRequest(): Request

makeUrl

open fun makeUrl(): Builder

param

open fun param(init: ParamContext.() -> Unit): Unit

Extension Functions

url

fun HttpContext.url(url: URL): Unit
fun HttpContext.url(url: String): Unit

Inheritors

HttpDeleteContext

class HttpDeleteContext : HttpPostContext

HttpPatchContext

class HttpPatchContext : HttpPostContext

HttpPutContext

class HttpPutContext : HttpPostContext