Skip to content
This repository was archived by the owner on Jan 31, 2026. It is now read-only.

Commit 781d223

Browse files
committed
release: 0.13.0
1 parent 3fb8da7 commit 781d223

File tree

7 files changed

+28
-4
lines changed

7 files changed

+28
-4
lines changed

.fvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"flutter": "3.32.0"
2+
"flutter": "3.32.6"
33
}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
FLUTTER_VERSION_OLDEST: "3.22.3"
11-
FLUTTER_VERSION_NEWEST: "3.32.0"
11+
FLUTTER_VERSION_NEWEST: "3.32.6"
1212

1313
jobs:
1414
format:

rhttp/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.13.0
2+
3+
- feat: add `HttpResponse.remoteIp` to get the remote IP address of the server
4+
- feat: set `forceSameCodegenVersion: false` to disable check by `flutter_rust_bridge`
5+
- deps: bump `flutter_rust_bridge` to `2.11.1`
6+
- deps: bump Rust dependencies to latest versions
7+
- docs: update Android example @FrankenApps (#78)
8+
19
## 0.12.0
210

311
- fix: Flutter 3.32 compatibility @MSOB7YY (#74)

rhttp/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,18 @@ HttpStreamResponse response = await Rhttp.getStream('https://example.com');
287287
Stream<Uint8List> body = response.body;
288288
```
289289

290+
They all extend the `HttpResponse` class, which contains the following properties:
291+
292+
| Property | Description |
293+
|-------------------------------------------|-----------------------------------------------------------------|
294+
| `String? remoteIp` | The remote IP address of the server that sent the response. |
295+
| `HttpRequest request` | The HTTP request that this response is associated with. |
296+
| `HttpVersion version` | The HTTP version of this response. |
297+
| `int statusCode` | The HTTP status code of this response. |
298+
| `List<(String, String)> headers` | The HTTP headers of this response. |
299+
| `Map<String, String> headerMap` | Response headers converted as a map. |
300+
| `Map<String, List<String>> headerMapList` | Response headers converted as a map respecting multiple values. |
301+
290302
## Request Lifecycle
291303

292304
### ➤ Cancel Requests

rhttp/lib/src/rhttp.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class Rhttp {
1313

1414
/// Initializes the Rust library.
1515
static Future<void> init() async {
16-
await RustLib.init();
16+
await RustLib.init(
17+
forceSameCodegenVersion: false,
18+
);
1719
}
1820

1921
/// Makes an HTTP request.

rhttp/lib/src/rust/frb_generated.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
2727
RustLibApi? api,
2828
BaseHandler? handler,
2929
ExternalLibrary? externalLibrary,
30+
bool forceSameCodegenVersion = true,
3031
}) async {
3132
await instance.initImpl(
3233
api: api,
3334
handler: handler,
3435
externalLibrary: externalLibrary,
36+
forceSameCodegenVersion: forceSameCodegenVersion,
3537
);
3638
}
3739

rhttp/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: rhttp
22
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.
3-
version: 0.12.0
3+
version: 0.13.0
44
repository: https://github.com/Tienisto/rhttp
55
topics:
66
- http

0 commit comments

Comments
 (0)