Package-level declarations

Functions

Link copied to clipboard
@ExperimentalSerializationApi
inline fun <T> Request.bodyJson(value: T, json: Json = lenientJson): Request
@ExperimentalSerializationApi
fun <T> Request.bodyJson(value: T, serializer: KSerializer<T>, json: Json = lenientJson): Request

Encodes the given value as the body of the request.

Link copied to clipboard
@ExperimentalSerializationApi
inline suspend fun <T> Response.decoded(json: Json = lenientJson): T
@ExperimentalSerializationApi
suspend fun <T> Response.decoded(serializer: KSerializer<T>, json: Json = lenientJson): T

Decodes the information in the response from the JSON representation.