Skip to content

Commit ae7be97

Browse files
committed
Reverted to last commits for request files
1 parent 7f70434 commit ae7be97

File tree

4 files changed

+0
-44
lines changed

4 files changed

+0
-44
lines changed

pkgs/http/lib/src/base_request.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,4 @@ abstract class BaseRequest {
165165

166166
@override
167167
String toString() => '$method $url';
168-
169-
/// [cache] property for caching the network request.
170-
///
171-
/// Defaults to `default`.
172-
String? get cache => HttpCacheOptions.defaultType;
173168
}

pkgs/http/lib/src/multipart_request.dart

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,4 @@ class MultipartRequest extends BaseRequest {
159159
growable: false);
160160
return '$prefix${String.fromCharCodes(list)}';
161161
}
162-
163-
@override
164-
String? get cache {
165-
if (_cache != null) {
166-
return _cache;
167-
}
168-
return super.cache;
169-
}
170-
171-
String? _cache;
172-
set cache(String? cacheType) {
173-
_cache = cacheType!;
174-
}
175162
}

pkgs/http/lib/src/request.dart

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,4 @@ class Request extends BaseRequest {
181181
if (!finalized) return;
182182
throw StateError("Can't modify a finalized Request.");
183183
}
184-
185-
@override
186-
String? get cache {
187-
if (_cache != null) {
188-
return _cache;
189-
}
190-
return super.cache;
191-
}
192-
193-
String? _cache;
194-
set cache(String? cacheType) {
195-
_cache = cacheType!;
196-
}
197184
}

pkgs/http/lib/src/streamed_request.dart

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,4 @@ class StreamedRequest extends BaseRequest {
5252
super.finalize();
5353
return ByteStream(_controller.stream);
5454
}
55-
56-
@override
57-
String? get cache {
58-
if (_cache != null) {
59-
return _cache;
60-
}
61-
return super.cache;
62-
}
63-
64-
String? _cache;
65-
set cache(String? cacheType) {
66-
_cache = cacheType!;
67-
}
6855
}

0 commit comments

Comments
 (0)