-
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathio_streamed_response.dart
More file actions
28 lines (26 loc) · 855 Bytes
/
Copy pathio_streamed_response.dart
File metadata and controls
28 lines (26 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import 'dart:io';
import 'package:http/http.dart';
import 'package:http/io_client.dart';
extension IOStreamedResponseCopyWith on IOStreamedResponse {
IOStreamedResponse copyWith({
Stream<List<int>>? stream,
int? statusCode,
int? contentLength,
BaseRequest? request,
Map<String, String>? headers,
bool? isRedirect,
bool? persistentConnection,
String? reasonPhrase,
HttpClientResponse? inner,
}) => IOStreamedResponse(
stream ?? this.stream,
statusCode ?? this.statusCode,
contentLength: contentLength ?? this.contentLength,
request: request ?? this.request,
headers: headers ?? this.headers,
isRedirect: isRedirect ?? this.isRedirect,
persistentConnection: persistentConnection ?? this.persistentConnection,
reasonPhrase: reasonPhrase ?? this.reasonPhrase,
inner: inner,
);
}