From e09675a6dbca8755a93b48f1219803c5e0a1fdd1 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Sat, 12 Oct 2024 16:43:36 +0200 Subject: [PATCH] feat: only export Client from http --- http/lib/http.dart | 2 -- http/lib/http_client.dart | 2 +- http/lib/http_server.dart | 1 - http/lib/src/http_client_memory.dart | 1 + http/test/http_utils_test.dart | 1 + 5 files changed, 3 insertions(+), 4 deletions(-) diff --git a/http/lib/http.dart b/http/lib/http.dart index 77a06f3..49a6174 100644 --- a/http/lib/http.dart +++ b/http/lib/http.dart @@ -4,8 +4,6 @@ import 'dart:typed_data'; import 'http_memory.dart'; -export 'package:http/http.dart' show Client; -export 'package:tekartik_http/src/http.dart'; export 'package:tekartik_http/src/http_constant.dart'; export 'http_client.dart'; diff --git a/http/lib/http_client.dart b/http/lib/http_client.dart index d24f6dc..b18fa4c 100644 --- a/http/lib/http_client.dart +++ b/http/lib/http_client.dart @@ -1,6 +1,6 @@ import 'package:tekartik_http/src/http_client.dart'; -export 'package:http/http.dart'; +export 'package:http/http.dart' show Client; export 'package:tekartik_http/http_memory.dart' show httpClientFactoryMemory; export 'package:tekartik_http/src/http_client.dart' show diff --git a/http/lib/http_server.dart b/http/lib/http_server.dart index 4877eac..15175d9 100644 --- a/http/lib/http_server.dart +++ b/http/lib/http_server.dart @@ -1,4 +1,3 @@ -export 'package:http/http.dart'; export 'package:tekartik_http/src/http_server.dart' show HttpServerFactory, diff --git a/http/lib/src/http_client_memory.dart b/http/lib/src/http_client_memory.dart index a70e4e5..241752a 100644 --- a/http/lib/src/http_client_memory.dart +++ b/http/lib/src/http_client_memory.dart @@ -4,6 +4,7 @@ import 'dart:convert'; import 'dart:typed_data'; +import 'package:http/http.dart'; import 'package:tekartik_http/http_client.dart'; import 'package:tekartik_http/src/http_common.dart'; import 'package:tekartik_http/src/http_server.dart'; diff --git a/http/test/http_utils_test.dart b/http/test/http_utils_test.dart index 1f3f613..5a183e8 100644 --- a/http/test/http_utils_test.dart +++ b/http/test/http_utils_test.dart @@ -2,6 +2,7 @@ import 'dart:convert'; +import 'package:http/http.dart'; import 'package:tekartik_http/http.dart'; import 'package:tekartik_http/http_utils.dart'; import 'package:test/test.dart';