Package-level declarations

Types

Link copied to clipboard
internal class AuthenticatedNetworkClient(engine: <Error class: unknown class>, serverConfigDTO: <Error class: unknown class>, bearerAuthProvider: <Error class: unknown class>, kaliumLogger: <Error class: unknown class>, installCompression: Boolean = true)

Provides a HttpClient that has all the needed configurations to talk with a Wire backend, like Serialization, and Content Negotiation. It's Authenticated, and will use the provided SessionManager to fill necessary Authentication headers, and refresh tokens as they expire.

Link copied to clipboard
internal class AuthenticatedWebSocketClient(engine: <Error class: unknown class>, bearerAuthProvider: <Error class: unknown class>, serverConfigDTO: <Error class: unknown class>, kaliumLogger: <Error class: unknown class>, webSocketSessionProvider: (<Error class: unknown class>, String) -> <Error class: unknown class>? = null)

HttpClient with WebSocket (ws or wss) capabilities. It's Authenticated, and will use the provided SessionManager to fill necessary Authentication headers, and refresh tokens as they expire.

Link copied to clipboard
Link copied to clipboard
internal class KaliumHttpLogger(level: <Error class: unknown class>, logger: <Error class: unknown class>, kaliumLogger: <Error class: unknown class>)
Link copied to clipboard

A client's logging plugin.

Link copied to clipboard
internal class KaliumLoggedContent(originalContent: <Error class: unknown class>, channel: <Error class: unknown class>)
Link copied to clipboard
class KaliumWebSocketFactory(okHttpClient: <Error class: unknown class>)

Upon request, creates normal WebSocket, but wraps the listener to add logging.

class KaliumWebSocketFactory(okHttpClient: <Error class: unknown class>)

Upon request, creates normal WebSocket, but wraps the listener to add logging.

Link copied to clipboard
Link copied to clipboard
internal class UnauthenticatedNetworkClient(engine: <Error class: unknown class>, backendLinks: <Error class: unknown class>)

Provides a HttpClient that has all the needed configurations to talk with a Wire backend, like Serialization, and Content Negotiation.

Link copied to clipboard
internal class UnboundNetworkClient(engine: <Error class: unknown class>)

Provides a HttpClient that has all the needed configurations to talk with a Wire backend, like Serialization, and Content Negotiation. Unlike others, this one has no strict ties with any API version nor default Base Url

Link copied to clipboard

Properties

Link copied to clipboard
val DevelopmentApiVersions: <Error class: unknown class>
Link copied to clipboard
internal var kaliumLogger: <Error class: unknown class>
Link copied to clipboard
val SupportedApiVersions: <Error class: unknown class>
Link copied to clipboard
internal const val WEBSOCKET_PING_INTERVAL_MILLIS: Long
Link copied to clipboard
internal const val WEBSOCKET_TIMEOUT: Long

Functions

Link copied to clipboard
fun buildClearTextTrafficOkhttpClient(): <Error class: unknown class>
fun buildClearTextTrafficOkhttpClient(): <Error class: unknown class>
Link copied to clipboard
fun buildOkhttpClient(block: <Error class: unknown class>.() -> Unit): <Error class: unknown class>
fun buildOkhttpClient(block: <Error class: unknown class>.() -> Unit): <Error class: unknown class>
Link copied to clipboard
expect fun clearTextTrafficEngine(): <Error class: unknown class>
actual fun clearTextTrafficEngine(): <Error class: unknown class>
Link copied to clipboard
expect fun defaultHttpEngine(serverConfigDTOApiProxy: <Error class: unknown class>?, proxyCredentials: <Error class: unknown class>?, ignoreSSLCertificates: Boolean = false, certificatePinning: CertificatePinning): <Error class: unknown class>
actual fun defaultHttpEngine(serverConfigDTOApiProxy: <Error class: unknown class>?, proxyCredentials: <Error class: unknown class>?, ignoreSSLCertificates: Boolean, certificatePinning: CertificatePinning): <Error class: unknown class>
Link copied to clipboard
fun <Error class: unknown class><out <Error class: unknown class>>.Logging(block: <Error class: unknown class>.() -> Unit = {})

Configure and install Logging in HttpClient.

Link copied to clipboard
internal suspend fun <Error class: unknown class>.observe(log: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
internal fun provideBaseHttpClient(engine: <Error class: unknown class>, kaliumLogger: <Error class: unknown class>, installCompression: Boolean = true, config: <Error class: unknown class><out <Error class: unknown class>>.() -> Unit = {}): <Error class: unknown class>
Link copied to clipboard
internal fun shouldAddApiVersion(apiVersion: Int): Boolean
Link copied to clipboard
fun supportedConnectionSpecs(): List<<Error class: unknown class>>
fun supportedConnectionSpecs(): List<<Error class: unknown class>>
Link copied to clipboard
internal inline suspend fun <Error class: unknown class>.tryReadText(charset: <Error class: unknown class>): String?