Package-level declarations

Types

Link copied to clipboard
object AlwaysHttpsInterceptor : Interceptor

Interceptor that forces all requests to the https url.

Link copied to clipboard
open class ForwardingEventListener(delegate: EventListener) : EventListener

Forwarding implementation of EventListener to allow for easy overrides of particular events.

Link copied to clipboard
class NetworkAwareCallFactory(delegate: Call.Factory, defaultRequestType: RequestType) : Call.Factory

Call.Factory wrapper that sets of known Request.requestType that a shared NetworkSelectingCallFactory can make network decisions and bring up high bandwidth networks based on the request type.

Link copied to clipboard
class NetworkSelectingCallFactory(networkingRulesEngine: NetworkingRulesEngine, highBandwidthNetworkMediator: HighBandwidthNetworkMediator, networkRepository: NetworkRepository, dataRequestRepository: DataRequestRepository?, rootClient: OkHttpClient, coroutineScope: CoroutineScope, timeout: Duration = 3.seconds, logger: NetworkStatusLogger) : Call.Factory

Properties

Link copied to clipboard
var Request.networkInfo: NetworkInfo?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun Call.await(): Response

Suspending version of Call.execute built on top of Call.enqueue and suspendCancellableCoroutine.