Package-level declarations

Types

Link copied to clipboard
class KtorClient(val hostName: String) : Closeable

An HTTP client with some easy to use methods ready to send and receive data in JSON format via Configuration.json. All methods can throw exception if the HttpStatusCode is not ok

Link copied to clipboard

Pair.first is the query key and Pair.second is the query value

Link copied to clipboard

Functions

Link copied to clipboard
fun HeadersBuilder.addAll(headers: Headers)
Link copied to clipboard
suspend fun <R : HttpResponse, D> R.handle(onSuccess: suspend (HttpResponse) -> D, onFailure: suspend (HttpResponse) -> D): D

R a type of a HttpResponse a type from data.domain. Something like GeminiResponse