Package-level declarations

Types

Link copied to clipboard
data class CacheConfig(val directory: File, val cacheDurationFilter: Map<String, Duration> = emptyMap(), val maxSizeInBytes: Long = DEFAULT_MAX_CACHE_SIZE)

HttpHandler cache configuration.

Link copied to clipboard
interface HttpHandler

Handle the HTTP requests.

Link copied to clipboard

Responsible for creating instances of HttpHandler.

Link copied to clipboard
class HttpHandlerFailure(val url: String, val message: String)

Failure related to http handler. It contains information about the url and cause of the failure.

Link copied to clipboard
class ResponseData(val code: Int, val headers: Map<String, String>, val body: ByteArray? = null, val validFor: Duration)

Information of the HTTP Response necessary for HttpHandler.