stable version
- fix #1091 , #1089 , #1087
- fix #1082 and # 1076
Interceptors: Add handler for Interceptor APIs which can specify the subsequent interceptors processing logic more finely(whether to skip them or not))
- fix #1074
- fix #1070
- support ListParam
- fix #1060
- rename CollectionFormat to ListFormat
- change default value of Options.listFormat from
mutiComptibletomulti - add upload_stream_test.dart
- support null-safety
- add
CollectionFormatconfiguration in Options - add
fetchAPI for Dio - rename DioErrorType enums from uppercase to camel style
- rename 'Options.merge' to 'Options.copyWith'
- fix #877 'dio.interceptors.errorLock.lock()'
- fix #851
- fix #641
- Add test cases
- Code style improvement
- Merge #574 : fix upload image header error, support both oss and other server
- revert #562, and fixed #566
- merge #557 #531
- fix #502 #515 #523
- fix encode bug
- fix #474 #480
- fix #470 #471
- Fix #467
- Export
DioForNativeandDioForBrowserclasses.
- Support Flutter Web.
- Extract CookieManager into a separate package(No need for Flutter Web).
- Provides a HTTP/2.0 HttpClientAdapter.
-
Options.cookies -
Options.connectionTimeout;We should config connection timed out inBaseOptions. For keep-alive reasons, not every request requires a separate connection。 -
Options.followRedirects、Options.maxRedirects、Response.redirectsdon't make sense in Flutter Web,because redirection can be automatically handled by browsers. -
FormData.from,useFormData.fromMapinstead. -
Delete
Formdata.asBytes()、Formdata.asBytesAsync(), useFormdata.readAsBytes()instead. -
Delete
class,UploadFileInfoMultipartFileinstead. -
The return type of Interceptor's callback changes from
FutureOr<dynamic>toFuture. The reason is here . -
The type of
Response.headerschanges fromHttpHeaderstoHeaders, becauseHttpHeadersis in "dart:io" library which is not supported in Flutter Web.
Add deleteOnError parameter to downloadUri
- fix #402 #385 #422
- fix #369
- fix #367 #365
- fix #360
- support flutter version>=1.8 (fix #357)
- fix #354 #312
- Allow "delete" method with request body(#223)
- fix #321 #318
- fix cfug/dio#316
- fix cfug/dio#309
- Add
options.responseDecoder - Make DioError catchable by implementing Exception instead of Error
Add statusMessage attribute for Response and ResponseBody
First Stable version for 2.x
Refactor the Interceptors
- Support add Multiple Interceptors.
- Add Log Interceptor
- Add CookieManager Interceptor
API
- Support Uri
- Support
queryParametersfor all request API - Modify the
getAPI
Options
- Separate Options to three class: Options、BaseOptions、RequestOptions
- Add
queryParametersandcookiesfor BaseOptions
Adapter
- Abstract HttpClientAdapter layer.
- Provide a DefaultHttpClientAdapter which make http requests by
dart:io:HttpClient
- change file name "TransFormer" to "Transformer"
- change "dio.transFormer" to "dio.transformer"
- change deprecated "UTF8" to "utf8"
- add
clearmethod for dio instance
- fix
downloadbugs
- support upload files with Array
- support create
HttpClientby user self inonHttpClientCreate - support generic
- bug fix
- Initial version, created by Stagehand