Package com. drake. net. okhttp
Functions
attachToNet
Link copied to clipboard
cancelGroup
Link copied to clipboard
cancelId
Link copied to clipboard
取消OkHttp客户端中指定Id的请求 如果使用的是Net创建的网络请求请使用com.drake.net.Net.cancelId
detachFromNet
Link copied to clipboard
onDialog
Link copied to clipboard
fun OkHttpClient.Builder.onDialog(block: (FragmentActivity) -> Dialog): OkHttpClient.Builder
Content copied to clipboard
onStateError
Link copied to clipboard
fun OkHttpClient.Builder.onStateError(block: Throwable.(view: View) -> Unit): OkHttpClient.Builder
Content copied to clipboard
setConverter
Link copied to clipboard
fun OkHttpClient.Builder.setConverter(converter: NetConverter): OkHttpClient.Builder
Content copied to clipboard
setDialogFactory
Link copied to clipboard
fun OkHttpClient.Builder.setDialogFactory(dialogFactory: NetDialogFactory): OkHttpClient.Builder
Content copied to clipboard
全局请求自动弹出的对话框会覆盖onDialog
setErrorHandler
Link copied to clipboard
fun OkHttpClient.Builder.setErrorHandler(handler: NetErrorHandler): OkHttpClient.Builder
Content copied to clipboard
setHost
Link copied to clipboard
设置全局默认的Host, 在使用com.drake.net.request.BaseRequest.setPath的时候会成为默认的Host
setRequestInterceptor
Link copied to clipboard
fun OkHttpClient.Builder.setRequestInterceptor(interceptor: RequestInterceptor): OkHttpClient.Builder
Content copied to clipboard
setSSLCertificate
Link copied to clipboard
fun OkHttpClient.Builder.setSSLCertificate(trustManager: X509TrustManager?, bksFile: InputStream? = null, password: String? = null): OkHttpClient.Builder
Content copied to clipboard
fun OkHttpClient.Builder.setSSLCertificate(vararg certificates: InputStream, bksFile: InputStream? = null, password: String? = null): OkHttpClient.Builder
Content copied to clipboard
toNetOkhttp
Link copied to clipboard
trustSSLCertificate
Link copied to clipboard