Request

abstract class Request<out B, T, out R>(method: Method, path: String, parameters: Parameters, body: B?, processResult: (T) -> R)

Functions

deserializeResponse
Link copied to clipboard
common
abstract fun deserializeResponse(response: String, serde: <ERROR CLASS>): T
serializeRequest
Link copied to clipboard
common
abstract fun serializeRequest(encoder: RequestEncoder)

Properties

body
Link copied to clipboard
common
val body: B? = null
contentType
Link copied to clipboard
common
open val contentType: String? = null
method
Link copied to clipboard
common
val method: Method
parameters
Link copied to clipboard
common
val parameters: Parameters
path
Link copied to clipboard
common
val path: String
processResult
Link copied to clipboard
common
val processResult: (T) -> R

Inheritors

JsonRequest
Link copied to clipboard
BulkRequest
Link copied to clipboard
CatRequest
Link copied to clipboard