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