| 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 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1583 } | 1583 } |
| 1584 return null; | 1584 return null; |
| 1585 } | 1585 } |
| 1586 | 1586 |
| 1587 checkProxy(String option) { | 1587 checkProxy(String option) { |
| 1588 if (option == null) return null; | 1588 if (option == null) return null; |
| 1589 int pos = option.indexOf("://"); | 1589 int pos = option.indexOf("://"); |
| 1590 if (pos >= 0) { | 1590 if (pos >= 0) { |
| 1591 option = option.substring(pos + 3); | 1591 option = option.substring(pos + 3); |
| 1592 } | 1592 } |
| 1593 pos = option.indexOf("/"); |
| 1594 if (pos >= 0) { |
| 1595 option = option.substring(0, pos); |
| 1596 } |
| 1593 if (option.indexOf(":") == -1) option = "$option:1080"; | 1597 if (option.indexOf(":") == -1) option = "$option:1080"; |
| 1594 return "PROXY $option"; | 1598 return "PROXY $option"; |
| 1595 } | 1599 } |
| 1596 | 1600 |
| 1597 // Default to using the process current environment. | 1601 // Default to using the process current environment. |
| 1598 if (environment == null) environment = Platform.environment; | 1602 if (environment == null) environment = Platform.environment; |
| 1599 | 1603 |
| 1600 String proxyCfg; | 1604 String proxyCfg; |
| 1601 | 1605 |
| 1602 String noProxy = environment["no_proxy"]; | 1606 String noProxy = environment["no_proxy"]; |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2231 | 2235 |
| 2232 | 2236 |
| 2233 class _RedirectInfo implements RedirectInfo { | 2237 class _RedirectInfo implements RedirectInfo { |
| 2234 const _RedirectInfo(int this.statusCode, | 2238 const _RedirectInfo(int this.statusCode, |
| 2235 String this.method, | 2239 String this.method, |
| 2236 Uri this.location); | 2240 Uri this.location); |
| 2237 final int statusCode; | 2241 final int statusCode; |
| 2238 final String method; | 2242 final String method; |
| 2239 final Uri location; | 2243 final Uri location; |
| 2240 } | 2244 } |
| OLD | NEW |