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

Side by Side Diff: sdk/lib/io/http_impl.dart

Issue 17406010: Move getters from Options to Platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed Dart_GetType Created 7 years, 6 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 | « sdk/lib/_internal/pub/test/test_pub.dart ('k') | sdk/lib/io/options.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) 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...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/test_pub.dart ('k') | sdk/lib/io/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698