Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
abstract val host: String
Link copied to clipboard
abstract val version: String

Functions

Link copied to clipboard
inline suspend fun <T : @Serializable Any> get(path: String, queryItems: List<URLQueryItem>? = null, isForDebugging: Boolean = false, requestId: String = UUID.randomUUID().toString(), retryCount: Int = NetworkConsts.retryCount()): Either<T, NetworkError>
Link copied to clipboard
abstract suspend fun makeHeaders(isForDebugging: Boolean, requestId: String): Map<String, String>
Link copied to clipboard
inline suspend fun <T : @Serializable Any> post(path: String, isForDebugging: Boolean = false, body: ByteArray? = null, requestId: String = UUID.randomUUID().toString(), retryCount: Int = 6): Either<T, NetworkError>