t_client library
Classes
Enums
Extensions
Functions
-
httpDownloadStream(
TClient client, String path, {required String savePath, TClientToken? token, Map< String, String> ? query, Map<String, String> ? headers}) → Stream<DownloadStreamProgress> -
httpUploadStream(
TClient client, {required String path, required File file, TClientToken? token}) → Stream< UploadStreamProgress>
Typedefs
-
Interceptor
= FutureOr<
HttpResponse> Function(HttpClientRequest request, Future<HttpResponse> next()) - OnCancelCallback = void Function(String message)
- OnReceiveProgressCallback = void Function(int received, int total)
- OnReceiveProgressSpeedCallback = void Function(int received, int total, double speed, Duration? eta)
- OnTClientLoggerMessageCallback = void Function(String message)