Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: lib/src/multipart_request.dart

Issue 1580273002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/http@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/multipart_file.dart ('k') | lib/src/request.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library multipart_request;
6
7 import 'dart:async'; 5 import 'dart:async';
8 import 'dart:convert'; 6 import 'dart:convert';
9 import 'dart:math'; 7 import 'dart:math';
10 8
11 import 'base_request.dart'; 9 import 'base_request.dart';
12 import 'byte_stream.dart'; 10 import 'byte_stream.dart';
13 import 'multipart_file.dart'; 11 import 'multipart_file.dart';
14 import 'utils.dart'; 12 import 'utils.dart';
15 13
16 final _newlineRegExp = new RegExp(r"\r\n|\r|\n"); 14 final _newlineRegExp = new RegExp(r"\r\n|\r|\n");
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 /// Returns a randomly-generated multipart boundary string 165 /// Returns a randomly-generated multipart boundary string
168 String _boundaryString() { 166 String _boundaryString() {
169 var prefix = "dart-http-boundary-"; 167 var prefix = "dart-http-boundary-";
170 var list = new List<int>.generate(_BOUNDARY_LENGTH - prefix.length, 168 var list = new List<int>.generate(_BOUNDARY_LENGTH - prefix.length,
171 (index) => 169 (index) =>
172 _BOUNDARY_CHARACTERS[_random.nextInt(_BOUNDARY_CHARACTERS.length)], 170 _BOUNDARY_CHARACTERS[_random.nextInt(_BOUNDARY_CHARACTERS.length)],
173 growable: false); 171 growable: false);
174 return "$prefix${new String.fromCharCodes(list)}"; 172 return "$prefix${new String.fromCharCodes(list)}";
175 } 173 }
176 } 174 }
OLDNEW
« no previous file with comments | « lib/src/multipart_file.dart ('k') | lib/src/request.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698