Package-level declarations

Types

Link copied to clipboard
class FailedCall(callFactory: Call.Factory, request: Request, message: String) : Call

A call that must fail because no suitable network is available.

Link copied to clipboard
class NetworkAwareEventListenerFactory(networkRepository: NetworkRepository, delegateEventListenerFactory: EventListener.Factory, dataRequestRepository: DataRequestRepository? = null, logger: NetworkStatusLogger) : NetworkLoggingEventListenerFactory

Internal EventListener that logs requests as well as closing High Bandwidth Requests.

Link copied to clipboard
open class NetworkLoggingEventListenerFactory(logger: NetworkStatusLogger, networkRepository: NetworkRepository, delegateEventListenerFactory: EventListener.Factory, dataRequestRepository: DataRequestRepository? = null) : EventListener.Factory

Internal EventListener that records estimated request and response sizes to the DataRequestRepository as well as closing High

Link copied to clipboard
data class RequestTypeHolder(var requestType: RequestType = RequestType.UnknownRequest, var networkInfo: NetworkInfo? = null, var highBandwidthConnectionLease: HighBandwidthConnectionLease? = null)

Payload logic to carry additional request/call details on the Request object, for use by this libraries interceptors and event listeners.

Link copied to clipboard
class RequestVerifyingInterceptor(networkingRulesEngine: NetworkingRulesEngine) : Interceptor

Interceptor that short circuits and requests on unsuitable networks, such that accidental downloads over expensive networks are not possible.