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

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

Issue 13880029: Add new InternetAddress class with a static lookup function (including IPv6 results). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge with master Created 7 years, 8 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
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 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 } 1831 }
1832 1832
1833 void destroy() => _socket.destroy(); 1833 void destroy() => _socket.destroy();
1834 1834
1835 Future close() => _socket.close(); 1835 Future close() => _socket.close();
1836 1836
1837 Future<Socket> get done => _socket.done; 1837 Future<Socket> get done => _socket.done;
1838 1838
1839 int get port => _socket.port; 1839 int get port => _socket.port;
1840 1840
1841 String get host => _socket.host; 1841 InternetAddress get address => _socket.address;
1842 1842
1843 String get remoteHost => _socket.remoteHost; 1843 String get remoteHost => _socket.remoteHost;
1844 1844
1845 int get remotePort => _socket.remotePort; 1845 int get remotePort => _socket.remotePort;
1846 1846
1847 bool setOption(SocketOption option, bool enabled) { 1847 bool setOption(SocketOption option, bool enabled) {
1848 return _socket.setOption(option, enabled); 1848 return _socket.setOption(option, enabled);
1849 } 1849 }
1850 } 1850 }
1851 1851
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 1990
1991 1991
1992 class _RedirectInfo implements RedirectInfo { 1992 class _RedirectInfo implements RedirectInfo {
1993 const _RedirectInfo(int this.statusCode, 1993 const _RedirectInfo(int this.statusCode,
1994 String this.method, 1994 String this.method,
1995 Uri this.location); 1995 Uri this.location);
1996 final int statusCode; 1996 final int statusCode;
1997 final String method; 1997 final String method;
1998 final Uri location; 1998 final Uri location;
1999 } 1999 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/io_patch.dart ('k') | sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698