Package-level declarations
Types
Link copied to clipboard
object CustomErrors
Link copied to clipboard
Link copied to clipboard
object MockUnboundNetworkClient
Link copied to clipboard
class MockWebSocketSession(val coroutineContext: <Error class: unknown class> = EmptyCoroutineContext)
Link copied to clipboard
Properties
Functions
Link copied to clipboard
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
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
Link copied to clipboard
Link copied to clipboard
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
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.