AbstractAPIClient
abstract class AbstractAPIClient(val baseUrl: String, val getTokenUseCase: IGetTokenUseCase? = null, val renewTokenUseCase: IRenewTokenUseCase? = null, val logoutUseCase: ILogoutUseCase? = null, json: Json? = null, engine: HttpClientEngine? = null, block: HttpClientConfig<*>.() -> Unit = {}) : IAPIClient
Base implementation of IAPIClient using Ktor HTTP client.
Constructors
Link copied to clipboard
constructor(baseUrl: String, getTokenUseCase: IGetTokenUseCase? = null, renewTokenUseCase: IRenewTokenUseCase? = null, logoutUseCase: ILogoutUseCase? = null, json: Json? = null, engine: HttpClientEngine? = null, block: HttpClientConfig<*>.() -> Unit = {})
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Determines whether to include the authentication token in the request. Can be overridden to customize behavior based on method and path. By default, it returns true for all requests.
Link copied to clipboard
Determines whether to propagate the request ID in the request. Can be overridden to customize behavior based on method and path. By default, it returns true for all requests.