DioExt extension

on

Properties

baseUrl String

Available on Dio, provided by the DioExt extension

no getter
connectTimeout Duration

Available on Dio, provided by the DioExt extension

no getter
contentType String

Available on Dio, provided by the DioExt extension

no getter
extras Map<String, dynamic>

Available on Dio, provided by the DioExt extension

no getter
followRedirects bool

Available on Dio, provided by the DioExt extension

no getter
headers Map<String, dynamic>

Available on Dio, provided by the DioExt extension

no getter
maxRedirects int

Available on Dio, provided by the DioExt extension

no getter
queryParameters Map<String, dynamic>

Available on Dio, provided by the DioExt extension

no getter
receiveDataWhenStatusError bool

Available on Dio, provided by the DioExt extension

no getter
receiveTimeout Duration

Available on Dio, provided by the DioExt extension

no getter
requestEncoder RequestEncoder

Available on Dio, provided by the DioExt extension

no getter
responseDecoder ResponseDecoder

Available on Dio, provided by the DioExt extension

no getter
responseType ResponseType

Available on Dio, provided by the DioExt extension

no getter
sendTimeout Duration

Available on Dio, provided by the DioExt extension

no getter
validateStatus ValidateStatus

Available on Dio, provided by the DioExt extension

no getter

Methods

addInterceptor(Interceptor interceptor) → void

Available on Dio, provided by the DioExt extension

addInterceptors(List<Interceptor> list) → void

Available on Dio, provided by the DioExt extension

openLog({bool request = false, bool requestHeader = false, bool requestBody = false, bool responseHeader = false, bool responseBody = false}) → void

Available on Dio, provided by the DioExt extension

openProxy(String? proxy) → void

Available on Dio, provided by the DioExt extension

eg. 192.168.0.1:8888
rangDownload(String url, String savePath, {Map<String, dynamic>? queryParameters, required ProgressCallback? onProgress, VoidCallback? onDone, void onError(dynamic err)?}) Future<CancelToken>

Available on Dio, provided by the DioExt extension

断点下载
setCertificate(String pem) → void

Available on Dio, provided by the DioExt extension

setCertificateFile(File file) → void

Available on Dio, provided by the DioExt extension