Skip to content

Commit

Permalink
release: 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Aug 23, 2024
1 parent cc46b33 commit 0effdb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions rhttp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
},
Expand Down
2 changes: 1 addition & 1 deletion rhttp/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0effdb1

Please sign in to comment.