SearchAPIRequest

data class SearchAPIRequest(body: String? = null, contentType: ContentType = ContentType.Application.Json, pathComponents: List<String> = listOf(), parameters: MutableMap<String, String> = mutableMapOf(), headers: MutableMap<String, Any> = mutableMapOf())

Constructors

Link copied to clipboard
constructor(body: String? = null, contentType: ContentType = ContentType.Application.Json, pathComponents: List<String> = listOf(), parameters: MutableMap<String, String> = mutableMapOf(), headers: MutableMap<String, Any> = mutableMapOf())

Functions

Link copied to clipboard
fun header(key: String, value: String)
fun header(key: String, values: List<String>)
Link copied to clipboard
fun json(dsl: JsonDsl, pretty: Boolean = false)
Link copied to clipboard
fun parameter(key: String, value: Boolean?)
fun parameter(key: String, value: Enum<*>?)
fun parameter(key: String, value: Number?)
fun parameter(key: String, value: String?)
fun parameter(key: String, value: Duration?)
Link copied to clipboard
fun parameters(params: Map<String, String>?)
Link copied to clipboard
fun path(vararg components: String?)
Link copied to clipboard
fun rawBody(body: String, contentType: ContentType = ContentType.Application.Json)