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

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

Issue 11338054: Add an HTTP library that wraps dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library stream_response;
6
7 import 'dart:io';
8
9 import 'base_response.dart';
10
11 /// An HTTP response where the response body is received asynchronously after
12 /// the headers have been received.
13 class StreamResponse extends BaseResponse {
Bob Nystrom 2012/10/31 01:17:44 "StreamedResponse"?
nweiz 2012/10/31 18:20:59 Done.
14 /// The stream from which the response body data can be read.
15 final InputStream stream;
16
17 /// Create a new streaming response.
18 StreamResponse(
19 this.stream,
20 int statusCode,
21 int contentLength,
22 {Map<String, String> headers: const <String>{},
23 bool isRedirect: false,
24 bool persistentConnection: true,
25 String reasonPhrase})
26 : super(
27 statusCode,
28 contentLength,
29 headers: headers,
30 isRedirect: isRedirect,
31 persistentConnection: persistentConnection,
32 reasonPhrase: reasonPhrase);
33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698