Эх сурвалжийг харах

Release 4.0.4: Flutter web performance improvements

Jonathan Goyvaerts 3 жил өмнө
parent
commit
34b8be2038
6 өөрчлөгдсөн 81 нэмэгдсэн , 39 устгасан
  1. 38 18
      README-ZH.md
  2. 1 1
      README.md
  3. 2 0
      dio/CHANGELOG.md
  4. 38 18
      dio/README-ZH.md
  5. 1 1
      dio/README.md
  6. 1 1
      dio/pubspec.yaml

+ 38 - 18
README-ZH.md

@@ -14,7 +14,7 @@ dio是一个强大的Dart Http请求库,支持Restful API、FormData、拦截
 
 ```yaml
 dependencies:
-  dio: ^4.0.3
+  dio: ^4.0.4
 ```
 
 > 如果你是dio 3.x 用户,想了解4.0的变更,请参考 [4.x更新列表](./migration_to_4.x.md)!
@@ -35,23 +35,43 @@ void getHttp() async {
 
 ## 内容列表
 
-- [示例](#示例)
-- [Dio APIs](#dio-apis)
-- [请求配置](#请求配置)
-- [响应数据](#响应数据)
-- [拦截器](#拦截器)
-- [Cookie管理](#cookie管理)
-- [错误处理](#错误处理)
-- [使用application/x-www-form-urlencoded编码](#使用applicationx-www-form-urlencoded编码)
-- [FormData](#formdata)
-- [转换器](#转换器)
-- [HttpClientAdapter](#httpclientadapter )
-- [设置Http代理](#设置Http代理)
-- [Https证书校验](#Https证书校验)
-- [Http2支持](#Http2支持)
-- [请求取消](#请求取消)
-- [继承 Dio class](#继承-dio-class)
-- [Features and bugs](#features-and-bugs)
+- [dio](#dio)
+  - [添加依赖](#添加依赖)
+  - [一个极简的示例](#一个极简的示例)
+  - [内容列表](#内容列表)
+  - [示例](#示例)
+    - [示例目录](#示例目录)
+  - [Dio APIs](#dio-apis)
+    - [创建一个Dio实例,并配置它](#创建一个dio实例并配置它)
+    - [请求方法别名](#请求方法别名)
+  - [请求配置](#请求配置)
+  - [响应数据](#响应数据)
+  - [拦截器](#拦截器)
+    - [完成和终止请求/响应](#完成和终止请求响应)
+    - [QueuedInterceptor](#queuedinterceptor)
+      - [例子](#例子)
+    - [日志](#日志)
+    - [Cookie管理](#cookie管理)
+    - [自定义拦截器](#自定义拦截器)
+  - [错误处理](#错误处理)
+    - [DioError 字段](#dioerror-字段)
+    - [DioErrorType](#dioerrortype)
+  - [使用application/x-www-form-urlencoded编码](#使用applicationx-www-form-urlencoded编码)
+  - [FormData](#formdata)
+    - [多文件上传](#多文件上传)
+  - [转换器](#转换器)
+    - [Flutter中设置](#flutter中设置)
+    - [其它示例](#其它示例)
+    - [执行流](#执行流)
+  - [HttpClientAdapter](#httpclientadapter)
+    - [设置Http代理](#设置http代理)
+    - [Https证书校验](#https证书校验)
+  - [Http2支持](#http2支持)
+  - [请求取消](#请求取消)
+  - [继承 Dio class](#继承-dio-class)
+  - [Copyright & License](#copyright--license)
+  - [Features and bugs](#features-and-bugs)
+  - [支持](#支持)
 
 
 ## 示例

+ 1 - 1
README.md

@@ -12,7 +12,7 @@ A powerful Http client for Dart, which supports Interceptors, Global configurati
 
 ```yaml
 dependencies:
-  dio: ^4.0.3
+  dio: ^4.0.4
 ```
 > Already know Dio 3 and just want to learn about what's new in Dio 4? Check out the [Migration Guide](./migration_to_4.x.md)!
 

+ 2 - 0
dio/CHANGELOG.md

@@ -1,3 +1,5 @@
+# 4.0.4
+- Fix download performance on Flutter Web ([#1318](https://github.com/flutterchina/dio/pull/1318))
 
 # 4.0.3
 - fix #1311

+ 38 - 18
dio/README-ZH.md

@@ -14,7 +14,7 @@ dio是一个强大的Dart Http请求库,支持Restful API、FormData、拦截
 
 ```yaml
 dependencies:
-  dio: ^4.0.3
+  dio: ^4.0.4
 ```
 
 > 如果你是dio 3.x 用户,想了解4.0的变更,请参考 [4.x更新列表](./migration_to_4.x.md)!
@@ -35,23 +35,43 @@ void getHttp() async {
 
 ## 内容列表
 
-- [示例](#示例)
-- [Dio APIs](#dio-apis)
-- [请求配置](#请求配置)
-- [响应数据](#响应数据)
-- [拦截器](#拦截器)
-- [Cookie管理](#cookie管理)
-- [错误处理](#错误处理)
-- [使用application/x-www-form-urlencoded编码](#使用applicationx-www-form-urlencoded编码)
-- [FormData](#formdata)
-- [转换器](#转换器)
-- [HttpClientAdapter](#httpclientadapter )
-- [设置Http代理](#设置Http代理)
-- [Https证书校验](#Https证书校验)
-- [Http2支持](#Http2支持)
-- [请求取消](#请求取消)
-- [继承 Dio class](#继承-dio-class)
-- [Features and bugs](#features-and-bugs)
+- [dio](#dio)
+  - [添加依赖](#添加依赖)
+  - [一个极简的示例](#一个极简的示例)
+  - [内容列表](#内容列表)
+  - [示例](#示例)
+    - [示例目录](#示例目录)
+  - [Dio APIs](#dio-apis)
+    - [创建一个Dio实例,并配置它](#创建一个dio实例并配置它)
+    - [请求方法别名](#请求方法别名)
+  - [请求配置](#请求配置)
+  - [响应数据](#响应数据)
+  - [拦截器](#拦截器)
+    - [完成和终止请求/响应](#完成和终止请求响应)
+    - [QueuedInterceptor](#queuedinterceptor)
+      - [例子](#例子)
+    - [日志](#日志)
+    - [Cookie管理](#cookie管理)
+    - [自定义拦截器](#自定义拦截器)
+  - [错误处理](#错误处理)
+    - [DioError 字段](#dioerror-字段)
+    - [DioErrorType](#dioerrortype)
+  - [使用application/x-www-form-urlencoded编码](#使用applicationx-www-form-urlencoded编码)
+  - [FormData](#formdata)
+    - [多文件上传](#多文件上传)
+  - [转换器](#转换器)
+    - [Flutter中设置](#flutter中设置)
+    - [其它示例](#其它示例)
+    - [执行流](#执行流)
+  - [HttpClientAdapter](#httpclientadapter)
+    - [设置Http代理](#设置http代理)
+    - [Https证书校验](#https证书校验)
+  - [Http2支持](#http2支持)
+  - [请求取消](#请求取消)
+  - [继承 Dio class](#继承-dio-class)
+  - [Copyright & License](#copyright--license)
+  - [Features and bugs](#features-and-bugs)
+  - [支持](#支持)
 
 
 ## 示例

+ 1 - 1
dio/README.md

@@ -12,7 +12,7 @@ A powerful Http client for Dart, which supports Interceptors, Global configurati
 
 ```yaml
 dependencies:
-  dio: ^4.0.3
+  dio: ^4.0.4
 ```
 > Already know Dio 3 and just want to learn about what's new in Dio 4? Check out the [Migration Guide](./migration_to_4.x.md)!
 

+ 1 - 1
dio/pubspec.yaml

@@ -1,6 +1,6 @@
 name: dio
 description: A powerful Http client for Dart, which supports Interceptors, FormData, Request Cancellation, File Downloading, Timeout etc.
-version: 4.0.3
+version: 4.0.4
 homepage: https://github.com/flutterchina/dio
 
 environment: