HttpUtils

object HttpUtils

A small set of utilities for making HttpCalls, aimed at demos and tests.

Properties

Link copied to clipboard
val defaultMapper: <Error class: unknown class>

Functions

Link copied to clipboard
inline fun <T : Any> getJson(url: URL, params: Map<String, String> = mapOf(), mapper: <Error class: unknown class> = defaultMapper): T
Link copied to clipboard
fun postJson(url: URL, data: String)
Link copied to clipboard
fun postPlain(url: URL, data: String)
Link copied to clipboard
fun putJson(url: URL, data: String)