| 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; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'byte_stream.dart'; | 7 import 'byte_stream.dart'; |
| 10 import 'base_response.dart'; | 8 import 'base_response.dart'; |
| 11 import 'base_request.dart'; | 9 import 'base_request.dart'; |
| 12 import 'utils.dart'; | 10 import 'utils.dart'; |
| 13 | 11 |
| 14 /// An HTTP response where the response body is received asynchronously after | 12 /// An HTTP response where the response body is received asynchronously after |
| 15 /// the headers have been received. | 13 /// the headers have been received. |
| 16 class StreamedResponse extends BaseResponse { | 14 class StreamedResponse extends BaseResponse { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 32 : super( | 30 : super( |
| 33 statusCode, | 31 statusCode, |
| 34 contentLength: contentLength, | 32 contentLength: contentLength, |
| 35 request: request, | 33 request: request, |
| 36 headers: headers, | 34 headers: headers, |
| 37 isRedirect: isRedirect, | 35 isRedirect: isRedirect, |
| 38 persistentConnection: persistentConnection, | 36 persistentConnection: persistentConnection, |
| 39 reasonPhrase: reasonPhrase), | 37 reasonPhrase: reasonPhrase), |
| 40 this.stream = toByteStream(stream); | 38 this.stream = toByteStream(stream); |
| 41 } | 39 } |
| OLD | NEW |