ApiRequest

class ApiRequest<ResultT>(val method: Method, val path: String, val parameters: Parameters = emptyMap(), val body: Serializer.ObjectCtx? = null, val serde: Serde, val processResponse: (ApiResponse) -> ResultT) : Request<Serializer.ObjectCtx, ApiResponse, ResultT>

Constructors

Link copied to clipboard
fun <ResultT> ApiRequest(method: Method, path: String, parameters: Parameters = emptyMap(), body: Serializer.ObjectCtx? = null, serde: Serde, processResponse: (ApiResponse) -> ResultT)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun deserializeResponse(response: PlainResponse): ApiResponse
Link copied to clipboard
open override fun serializeRequest(encoder: ContentEncoder)

Properties

Link copied to clipboard
Link copied to clipboard
open override val body: Serializer.ObjectCtx? = null
Link copied to clipboard
open override val contentType: String
Link copied to clipboard
open override val errorSerde: Serde
Link copied to clipboard
open override val method: Method
Link copied to clipboard
open override val parameters: Parameters
Link copied to clipboard
open override val path: String
Link copied to clipboard
open override val processResponse: (ApiResponse) -> ResultT
Link copied to clipboard