thl 7 年之前
父节点
当前提交
b6210025d7
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      README.md

+ 6 - 0
README.md

@@ -9,6 +9,12 @@ v0.1.6(2018.12.20)
 ```
 // 打开debug模式.
 DioUtil.openDebug(); 
+
+// 配置网络参数.
+Options options = DioUtil.getDefOptions();
+options.baseUrl = "http://www.wanandroid.com/";
+HttpConfig config = new HttpConfig(options: options);
+DioUtil().setConfig(config);
   
 // 两种单例请求方式.
 DioUtil().request<List>(Method.get, "banner/json");