net / com.drake.net / android.app.Application / initNet
initNet¶
fun
Application
.initNet(host:
String
, config: Builder.() ->
Unit
= {}):
Unit
初始化框架
Parameters¶
host
- 请求url的主机名
config
-
进行配置网络请求
如果想要自动解析数据模型请配置转换器, 可以继承或者参考默认转换器
See Also
net / com.drake.net / android.app.Application / initNet
fun
Application
.initNet(host:
String
, config: Builder.() ->
Unit
= {}):
Unit
初始化框架
host
- 请求url的主机名
config
-
进行配置网络请求
如果想要自动解析数据模型请配置转换器, 可以继承或者参考默认转换器
See Also