From 0effdb12f99644e26627605e6b31a229192a87ff Mon Sep 17 00:00:00 2001 From: Tien Do Nam Date: Fri, 23 Aug 2024 21:01:23 +0200 Subject: [PATCH] release: 0.6.1 --- rhttp/README.md | 8 +++++--- rhttp/pubspec.yaml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/rhttp/README.md b/rhttp/README.md index f795b8a..5b8f4be 100644 --- a/rhttp/README.md +++ b/rhttp/README.md @@ -289,14 +289,16 @@ await request; ### ➤ Progress -You can observe the progress of the request, by providing `onSendProgress` or `onReceiveProgress` callbacks. +You can observe the progress of the request, by providing `onSendProgress` and `onReceiveProgress` callbacks. -Please note, that request and response bodies must be either `Stream` or `Uint8List`. +Please note that request and response bodies must be either `Stream` or `Uint8List`. + +The parameter `total` can be `-1` if the total size is unknown. ```dart final request = Rhttp.post( 'https://example.com', - body: HttpBody.bytes(Uint8List.fromList(bytes)), + body: HttpBody.bytes(bytes), onSendProgress: (sent, total) { print('Sent: $sent, Total: $total'); }, diff --git a/rhttp/pubspec.yaml b/rhttp/pubspec.yaml index ee64a5f..1f78dd5 100644 --- a/rhttp/pubspec.yaml +++ b/rhttp/pubspec.yaml @@ -1,6 +1,6 @@ name: rhttp description: Make HTTP requests using Rust for Flutter developers. It uses FFI to call Rust functions from Dart. On the Rust side, it uses reqwest to make HTTP requests. -version: 0.6.0 +version: 0.6.1 repository: https://github.com/Tienisto/rhttp topics: - http