Net
/
com.drake.net
/
NetConfig
/
init
init
fun
init
(host:
String
= "", config:
OkHttpClient.Builder
.() ->
Unit
= {})
Content copied to clipboard
fun
init
(host:
String
= "", config:
OkHttpClient.Builder
)
Content copied to clipboard
初始化框架, 该函数仅在Kotlin下有效
Parameters
host
请求url的主机名
config
进行配置网络请求