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 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 InternetAddress get address => _socket.address; | 1841 String get host => _socket.host; |
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 Loading... |
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 } |
OLD | NEW |