EnrichmentService

class EnrichmentService(val host: String, val version: String, val factory: ApiFactory, val customHttpUrlConnection: CustomHttpUrlConnection) : NetworkService(source)

Constructors

Link copied to clipboard
constructor(host: String, version: String, factory: ApiFactory, customHttpUrlConnection: CustomHttpUrlConnection)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val host: String
Link copied to clipboard
open override val version: String

Functions

Link copied to clipboard
suspend fun enrichment(enrichmentRequest: EnrichmentRequest, maxRetry: Int = 0, timeout: Duration = 1.seconds): Either<Enrichment, NetworkError>
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
open suspend override 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>