Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class MockWebSocketSession(val coroutineContext: <Error class: unknown class> = EmptyCoroutineContext)
Link copied to clipboard
sealed class NetworkResponse<out T : Any>

Properties

Link copied to clipboard
val sensitiveJsonKeys: <Error class: unknown class>
Link copied to clipboard
internal val <Error class: unknown class>.UnreachableRemoteBackends: <Error class: unknown class>

Custom HttpStatusCode to handle when one or more federated remote servers are unreachable.

Functions

Link copied to clipboard
fun deleteSensitiveItemsFromJson(text: String): String
Link copied to clipboard
internal inline fun <T : Any, R : Any> NetworkResponse<T>.flatMap(fn: (NetworkResponse.Success<T>) -> NetworkResponse<R>): NetworkResponse<R>
Link copied to clipboard
internal suspend fun handleUnsuccessfulResponse(result: <Error class: unknown class>): NetworkResponse.Error
Link copied to clipboard
fun <Error class: unknown class><out <Error class: unknown class>>.installWireDefaultRequest(serverConfigDTO: <Error class: unknown class>)
Link copied to clipboard
fun <T : Any> NetworkResponse<T>.isSuccessful(): Boolean
Link copied to clipboard
internal inline fun <T : Any, U : Any> NetworkResponse<T>.mapSuccess(mapping: (T) -> U): NetworkResponse<U>

If the request is successful, perform mapping and create a new Success with its result

Link copied to clipboard
fun obfuscatedJsonElement(element: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
fun obfuscatedJsonMessage(text: String): String
Link copied to clipboard
fun obfuscatePath(url: <Error class: unknown class>): String
Link copied to clipboard
internal inline fun <T : Any> NetworkResponse<T>.onFailure(fn: (NetworkResponse.Error) -> Unit): NetworkResponse<T>
Link copied to clipboard
internal inline fun <T : Any> NetworkResponse<T>.onSuccess(fn: (NetworkResponse.Success<T>) -> Unit): NetworkResponse<T>
Link copied to clipboard
internal fun <Error class: unknown class>.setUrl(baseUrl: <Error class: unknown class>, vararg path: String)
internal fun <Error class: unknown class>.setUrl(baseUrl: String, vararg path: String)
Link copied to clipboard
internal fun <Error class: unknown class>.setWSSUrl(baseUrl: <Error class: unknown class>, vararg path: String)
Link copied to clipboard
internal fun String.splitSetCookieHeader(): List<String>
Link copied to clipboard
suspend fun <T : Any> wrapFederationResponse(response: <Error class: unknown class>, delegatedHandler: suspend (<Error class: unknown class>) -> NetworkResponse<T>): NetworkResponse<T>

Wrap and handles federation aware endpoints that can send errors responses And raise specific federated context exceptions,

Link copied to clipboard
internal inline suspend fun <BodyType : Any> wrapKaliumResponse(unsuccessfulResponseOverride: (<Error class: unknown class>) -> NetworkResponse<BodyType>? = { null }, performRequest: () -> <Error class: unknown class>): NetworkResponse<BodyType>

Wraps a producer of HttpResponse and attempts to parse the server response based on the BodyType.