| OLD | NEW |
| 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_response; | 5 library streamed_response; |
| 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_response.dart'; | 10 import 'base_response.dart'; |
| 12 import 'base_request.dart'; | 11 import 'base_request.dart'; |
| 13 import 'utils.dart'; | 12 import 'utils.dart'; |
| 14 | 13 |
| 15 /// An HTTP response where the response body is received asynchronously after | 14 /// An HTTP response where the response body is received asynchronously after |
| 16 /// the headers have been received. | 15 /// the headers have been received. |
| 17 class StreamedResponse extends BaseResponse { | 16 class StreamedResponse extends BaseResponse { |
| 18 /// The stream from which the response body data can be read. This should | 17 /// The stream from which the response body data can be read. This should |
| (...skipping 14 matching lines...) Expand all Loading... |
| 33 : super( | 32 : super( |
| 34 statusCode, | 33 statusCode, |
| 35 contentLength, | 34 contentLength, |
| 36 request: request, | 35 request: request, |
| 37 headers: headers, | 36 headers: headers, |
| 38 isRedirect: isRedirect, | 37 isRedirect: isRedirect, |
| 39 persistentConnection: persistentConnection, | 38 persistentConnection: persistentConnection, |
| 40 reasonPhrase: reasonPhrase), | 39 reasonPhrase: reasonPhrase), |
| 41 this.stream = toByteStream(stream); | 40 this.stream = toByteStream(stream); |
| 42 } | 41 } |
| OLD | NEW |