ConfigurationRestClient

interface ConfigurationRestClient : KoinComponent

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val basepath: String
Link copied to clipboard
open val cache: Cache
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val logLevel: HttpLoggingInterceptor.Level
Link copied to clipboard
open val timeout: Long

Timeout en segundos

Functions

Link copied to clipboard
open fun certificatePinner(): CertificatePinner.Builder.() -> Unit?
Link copied to clipboard
open suspend fun getHeaders(): MutableMap<String, String>
Link copied to clipboard
open fun getKoin(): Koin
Link copied to clipboard
open fun handleResponse(response: String): String
Link copied to clipboard
open fun <T> hasHttpError(response: Response<T>): BaseException?
Link copied to clipboard
Link copied to clipboard
open fun isPetitionAuth(url: String, headers: Headers): Boolean

Indicate that this petition is authenticate or not It means if for example login get an authenticator error the controller doesn't execute refrestoken

Link copied to clipboard
Link copied to clipboard
open suspend fun logPetition(headers: String, bodyParam: String, path: String, method: String, responseBody: String)
Link copied to clipboard
open suspend fun refreshToken()