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

Commit 522e24c

Browse files
committed
deps: bump dart and flutter version
1 parent b8c2daf commit 522e24c

23 files changed

+3034
-2169
lines changed

rhttp/analysis_options.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include: package:lints/core.yaml
22

3-
# Additional information about this file can be found at
4-
# https://dart.dev/guides/language/analysis-options
3+
formatter:
4+
trailing_commas: preserve
55

66
analyzer:
77
exclude:

rhttp/example/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,5 +447,5 @@ packages:
447447
source: hosted
448448
version: "3.1.0"
449449
sdks:
450-
dart: ">=3.8.0 <4.0.0"
451-
flutter: ">=3.24.0"
450+
dart: ">=3.9.0 <4.0.0"
451+
flutter: ">=3.35.0"

rhttp/lib/src/client/io/io_client.dart

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,11 @@ class IoCompatibleClient implements HttpClient {
9999

100100
@override
101101
Future<HttpClientRequest> open(
102-
String method, String host, int port, String path) =>
103-
openUrl(method, Uri.parse('http://$host:$port$path'));
102+
String method,
103+
String host,
104+
int port,
105+
String path,
106+
) => openUrl(method, Uri.parse('http://$host:$port$path'));
104107

105108
@override
106109
Future<HttpClientRequest> openUrl(String method, Uri url) =>
@@ -129,31 +132,34 @@ class IoCompatibleClient implements HttpClient {
129132

130133
@override
131134
void addCredentials(
132-
Uri url, String realm, HttpClientCredentials credentials) =>
133-
throw UnimplementedError("addCredentials is not supported");
135+
Uri url,
136+
String realm,
137+
HttpClientCredentials credentials,
138+
) => throw UnimplementedError("addCredentials is not supported");
134139

135140
@override
136-
void addProxyCredentials(String host, int port, String realm,
137-
HttpClientCredentials credentials) =>
138-
throw UnimplementedError("addProxyCredentials is not supported");
141+
void addProxyCredentials(
142+
String host,
143+
int port,
144+
String realm,
145+
HttpClientCredentials credentials,
146+
) => throw UnimplementedError("addProxyCredentials is not supported");
139147

140148
@override
141149
set authenticate(
142-
Future<bool> Function(Uri url, String scheme, String? realm)? f) =>
143-
throw UnimplementedError("authenticate is not supported");
150+
Future<bool> Function(Uri url, String scheme, String? realm)? f,
151+
) => throw UnimplementedError("authenticate is not supported");
144152

145153
@override
146154
set authenticateProxy(
147-
Future<bool> Function(
148-
String host, int port, String scheme, String? realm)?
149-
f) =>
150-
throw UnimplementedError("authenticateProxy is not supported");
155+
Future<bool> Function(String host, int port, String scheme, String? realm)?
156+
f,
157+
) => throw UnimplementedError("authenticateProxy is not supported");
151158

152159
@override
153160
set badCertificateCallback(
154-
bool Function(X509Certificate cert, String host, int port)?
155-
callback) =>
156-
UnimplementedError("badCertificateCallback is not supported");
161+
bool Function(X509Certificate cert, String host, int port)? callback,
162+
) => UnimplementedError("badCertificateCallback is not supported");
157163

158164
@override
159165
void close({bool force = false}) {
@@ -162,11 +168,13 @@ class IoCompatibleClient implements HttpClient {
162168

163169
@override
164170
set connectionFactory(
165-
Future<ConnectionTask<Socket>> Function(
166-
Uri url,
167-
String? proxyHost,
168-
int? proxyPort,
169-
)? f) {
171+
Future<ConnectionTask<Socket>> Function(
172+
Uri url,
173+
String? proxyHost,
174+
int? proxyPort,
175+
)?
176+
f,
177+
) {
170178
UnimplementedError("connectionFactory is not supported");
171179
}
172180

rhttp/lib/src/client/io/io_request.dart

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,15 @@ class RhttpIoRequest implements HttpClientRequest {
5555
cancelToken: _cancelToken,
5656
);
5757

58-
response.then((value) async {
59-
_controller.close();
60-
_responseCompleter.complete(value);
61-
}).catchError((error, stackTrace) {
62-
_controller.close();
63-
_responseCompleter.completeError(error, stackTrace);
64-
});
58+
response
59+
.then((value) async {
60+
_controller.close();
61+
_responseCompleter.complete(value);
62+
})
63+
.catchError((error, stackTrace) {
64+
_controller.close();
65+
_responseCompleter.completeError(error, stackTrace);
66+
});
6567
}
6668

6769
@override

rhttp/lib/src/client/io/io_response.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ class RhttpIoResponse with Stream<List<int>> implements HttpClientResponse {
7474
String get reasonPhrase => "";
7575

7676
@override
77-
Future<HttpClientResponse> redirect(
78-
[String? method, Uri? url, bool? followLoops]) {
77+
Future<HttpClientResponse> redirect([
78+
String? method,
79+
Uri? url,
80+
bool? followLoops,
81+
]) {
7982
throw UnimplementedError();
8083
}
8184

8285
@override
83-
List<RedirectInfo> get redirects =>
84-
[]; // leaving this empty since we cant extract the redirect from rust side
86+
List<RedirectInfo> get redirects => []; // leaving this empty since we cant extract the redirect from rust side
8587
}

0 commit comments

Comments
 (0)