File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.12.0+4-dev
2
+
3
+ * Internal changes.
4
+
1
5
## 0.12.0+3
2
6
3
7
* Documentation fixes.
Original file line number Diff line number Diff line change @@ -43,13 +43,11 @@ class MultipartRequest extends BaseRequest {
43
43
/// The form fields to send for this request.
44
44
final fields = < String , String > {};
45
45
46
- final _files = < MultipartFile > [];
46
+ /// The list of files to upload for this request.
47
+ final files = < MultipartFile > [];
47
48
48
49
MultipartRequest (String method, Uri url) : super (method, url);
49
50
50
- /// The list of files to upload for this request.
51
- List <MultipartFile > get files => _files;
52
-
53
51
/// The total length of the request body, in bytes.
54
52
///
55
53
/// This is calculated from [fields] and [files] and cannot be set manually.
@@ -66,7 +64,7 @@ class MultipartRequest extends BaseRequest {
66
64
'\r\n ' .length;
67
65
});
68
66
69
- for (var file in _files ) {
67
+ for (var file in files ) {
70
68
length += '--' .length +
71
69
_boundaryLength +
72
70
'\r\n ' .length +
@@ -105,7 +103,7 @@ class MultipartRequest extends BaseRequest {
105
103
yield line;
106
104
}
107
105
108
- for (final file in _files ) {
106
+ for (final file in files ) {
109
107
yield separator;
110
108
yield utf8.encode (_headerForFile (file));
111
109
yield * file.finalize ();
Original file line number Diff line number Diff line change 1
1
name : http
2
- version : 0.12.0+3
2
+ version : 0.12.0+4-dev
3
3
homepage : https://github.com/dart-lang/http
4
4
description : A composable, multi-platform, Future-based API for HTTP requests.
5
5
You can’t perform that action at this time.
0 commit comments