object HttpUtils
A small set of utilities for making HttpCalls, aimed at demos and tests.
val defaultMapper: <ERROR CLASS> |
fun <T : Any> getJson(url: URL, params: Map<String, String> = mapOf(), mapper: <ERROR CLASS> = defaultMapper): T |
|
fun postJson(url: URL, data: String): Unit |
|
fun postPlain(url: URL, data: String): Unit |
|
fun putJson(url: URL, data: String): Unit |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |