MapboxOkHttpService(androidJvm)

Concrete implementation of the common HttpServiceInterface using OkHttp.

open class MapboxOkHttpService(androidJvm) : HttpServiceInterface

Constructors

MapboxOkHttpService
Link copied to clipboard

This constructor is only exposed to allow for the module creation. In most of the cases you want to use getHttpServiceInstance .

open fun MapboxOkHttpService()

Functions

addDownloadCall
Link copied to clipboard
open fun addDownloadCall(request: Request, callback: CallbackWrapper.RequestCallback, id: Long, timeout: Long, networkRestriction: NetworkRestriction)
buildRequest
Link copied to clipboard
open fun buildRequest(request: HttpRequest): Request
cancelRequest
Link copied to clipboard
open fun cancelRequest(id: Long, callback: ResultCallback)
abstract fun cancelRequest(p: Long, p1: ResultCallback)
download
Link copied to clipboard
open fun download(options: DownloadOptions, callback: DownloadStatusCallback): Long
abstract fun download(p: DownloadOptions, p1: DownloadStatusCallback): Long
generateOutputHeaders
Link copied to clipboard
open fun generateOutputHeaders(response: Response): HashMap<String, String>
removeCall
Link copied to clipboard
open fun removeCall(id: Long)
request
Link copied to clipboard
open fun request(request: HttpRequest, callback: HttpResponseCallback): Long
abstract fun request(p: HttpRequest, p1: HttpResponseCallback): Long
setInterceptor
Link copied to clipboard
abstract fun setInterceptor(p: HttpServiceInterceptorInterface)
setMaxRequestsPerHost
Link copied to clipboard
abstract fun setMaxRequestsPerHost(p: Byte)
supportsKeepCompression
Link copied to clipboard
open fun supportsKeepCompression(): Boolean
abstract fun supportsKeepCompression(): Boolean

Properties

interceptor
Link copied to clipboard
private open var interceptor: HttpServiceInterceptorInterface
maxRequestsPerHost
Link copied to clipboard
private open var maxRequestsPerHost: Byte