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 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 String host; | 1934 String host; |
1935 int port; | 1935 int port; |
1936 String realm; | 1936 String realm; |
1937 _HttpClientCredentials credentials; | 1937 _HttpClientCredentials credentials; |
1938 } | 1938 } |
1939 | 1939 |
1940 | 1940 |
1941 abstract class _HttpClientCredentials implements HttpClientCredentials { | 1941 abstract class _HttpClientCredentials implements HttpClientCredentials { |
1942 _AuthenticationScheme get scheme; | 1942 _AuthenticationScheme get scheme; |
1943 void authorize(_Credentials credentials, HttpClientRequest request); | 1943 void authorize(_Credentials credentials, HttpClientRequest request); |
| 1944 void authorizeProxy(_ProxyCredentials _, HttpClientRequest request); |
1944 } | 1945 } |
1945 | 1946 |
1946 | 1947 |
1947 class _HttpClientBasicCredentials | 1948 class _HttpClientBasicCredentials |
1948 extends _HttpClientCredentials | 1949 extends _HttpClientCredentials |
1949 implements HttpClientBasicCredentials { | 1950 implements HttpClientBasicCredentials { |
1950 _HttpClientBasicCredentials(this.username, | 1951 _HttpClientBasicCredentials(this.username, |
1951 this.password); | 1952 this.password); |
1952 | 1953 |
1953 _AuthenticationScheme get scheme => _AuthenticationScheme.BASIC; | 1954 _AuthenticationScheme get scheme => _AuthenticationScheme.BASIC; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2001 | 2002 |
2002 | 2003 |
2003 class _RedirectInfo implements RedirectInfo { | 2004 class _RedirectInfo implements RedirectInfo { |
2004 const _RedirectInfo(int this.statusCode, | 2005 const _RedirectInfo(int this.statusCode, |
2005 String this.method, | 2006 String this.method, |
2006 Uri this.location); | 2007 Uri this.location); |
2007 final int statusCode; | 2008 final int statusCode; |
2008 final String method; | 2009 final String method; |
2009 final Uri location; | 2010 final Uri location; |
2010 } | 2011 } |
OLD | NEW |