Skip to content

Commit

Permalink
pkgs/ok_http: Close the client (override close() from BaseClient) (
Browse files Browse the repository at this point in the history
  • Loading branch information
Anikate-De authored Jun 3, 2024
1 parent 9f022d2 commit eb87a60
Show file tree
Hide file tree
Showing 4 changed files with 1,349 additions and 9 deletions.
2 changes: 2 additions & 0 deletions pkgs/ok_http/example/integration_test/client_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ Future<void> testConformance() async {
testResponseBody(OkHttpClient(), canStreamResponseBody: false);
testRequestHeaders(OkHttpClient());
testRequestMethods(OkHttpClient(), preservesMethodCase: true);
testResponseHeaders(OkHttpClient(), supportsFoldedHeaders: false);
testResponseStatusLine(OkHttpClient());
testCompressedResponseBody(OkHttpClient());
testServerErrors(OkHttpClient());
testClose(OkHttpClient.new);
testIsolate(OkHttpClient.new);
testResponseCookies(OkHttpClient(), canReceiveSetCookieHeaders: true);
});
Expand Down
5 changes: 5 additions & 0 deletions pkgs/ok_http/jnigen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ classes:
- "okhttp3.Call"
- "okhttp3.Headers"
- "okhttp3.Callback"
- "okhttp3.ConnectionPool"
- "okhttp3.Dispatcher"
- "okhttp3.Cache"

# Exclude the deprecated methods listed below
# They cause syntax errors during the `dart format` step of JNIGen.
Expand Down Expand Up @@ -76,6 +79,8 @@ exclude:
- 'okhttp3.OkHttpClient\$Builder#-addNetworkInterceptor'
- 'okhttp3.Headers\$Companion#-deprecated_of'
- "okhttp3.Headers#-deprecated_size"
- "okhttp3.Dispatcher#-deprecated_executorService"
- "okhttp3.Cache#-deprecated_directory"

class_path:
- "jar/okhttp-4.12.0.jar"
Loading

0 comments on commit eb87a60

Please sign in to comment.