OLD | NEW |
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 part of dart.io; | 5 part of dart.io; |
6 | 6 |
7 class _HttpIncoming extends Stream<List<int>> { | 7 class _HttpIncoming extends Stream<List<int>> { |
8 final int _transferLength; | 8 final int _transferLength; |
9 final Completer _dataCompleter = new Completer(); | 9 final Completer _dataCompleter = new Completer(); |
10 Stream<List<int>> _stream; | 10 Stream<List<int>> _stream; |
(...skipping 2364 matching lines...) Loading... |
2375 class _RedirectInfo implements RedirectInfo { | 2375 class _RedirectInfo implements RedirectInfo { |
2376 const _RedirectInfo(int this.statusCode, | 2376 const _RedirectInfo(int this.statusCode, |
2377 String this.method, | 2377 String this.method, |
2378 Uri this.location); | 2378 Uri this.location); |
2379 final int statusCode; | 2379 final int statusCode; |
2380 final String method; | 2380 final String method; |
2381 final Uri location; | 2381 final Uri location; |
2382 } | 2382 } |
2383 | 2383 |
2384 String _getHttpVersion() { | 2384 String _getHttpVersion() { |
2385 var version = new Options().version; | 2385 var version = Platform.version; |
2386 // Only include major and minor version numbers. | 2386 // Only include major and minor version numbers. |
2387 int index = version.indexOf('.', version.indexOf('.') + 1); | 2387 int index = version.indexOf('.', version.indexOf('.') + 1); |
2388 version = version.substring(0, index); | 2388 version = version.substring(0, index); |
2389 return 'Dart/$version (dart:io)'; | 2389 return 'Dart/$version (dart:io)'; |
2390 } | 2390 } |
OLD | NEW |