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

Side by Side Diff: pkg/http/lib/src/streamed_request.dart

Issue 19866007: pkg/http tweaks (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « pkg/http/lib/src/multipart_request.dart ('k') | pkg/http/lib/src/streamed_response.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 streamed_request; 5 library streamed_request;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io';
9 8
10 import 'byte_stream.dart'; 9 import 'byte_stream.dart';
11 import 'base_request.dart'; 10 import 'base_request.dart';
12 11
13 /// An HTTP request where the request body is sent asynchronously after the 12 /// An HTTP request where the request body is sent asynchronously after the
14 /// connection has been established and the headers have been sent. 13 /// connection has been established and the headers have been sent.
15 /// 14 ///
16 /// When the request is sent via [BaseClient.send], only the headers and 15 /// When the request is sent via [BaseClient.send], only the headers and
17 /// whatever data has already been written to [StreamedRequest.stream] will be 16 /// whatever data has already been written to [StreamedRequest.stream] will be
18 /// sent immediately. More data will be sent as soon as it's written to 17 /// sent immediately. More data will be sent as soon as it's written to
(...skipping 16 matching lines...) Expand all
35 _controller = new StreamController<List<int>>(sync: true); 34 _controller = new StreamController<List<int>>(sync: true);
36 35
37 /// Freezes all mutable fields other than [stream] and returns a 36 /// Freezes all mutable fields other than [stream] and returns a
38 /// single-subscription [ByteStream] that emits the data being written to 37 /// single-subscription [ByteStream] that emits the data being written to
39 /// [sink]. 38 /// [sink].
40 ByteStream finalize() { 39 ByteStream finalize() {
41 super.finalize(); 40 super.finalize();
42 return new ByteStream(_controller.stream); 41 return new ByteStream(_controller.stream);
43 } 42 }
44 } 43 }
OLDNEW
« no previous file with comments | « pkg/http/lib/src/multipart_request.dart ('k') | pkg/http/lib/src/streamed_response.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698