| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // The close queue handles graceful closing of HTTP connections. When | 5 // The close queue handles graceful closing of HTTP connections. When |
| 6 // a connection is added to the queue it will enter a wait state | 6 // a connection is added to the queue it will enter a wait state |
| 7 // waiting for all data written and possibly socket shutdown from | 7 // waiting for all data written and possibly socket shutdown from |
| 8 // peer. | 8 // peer. |
| 9 class _CloseQueue { | 9 class _CloseQueue { |
| 10 _CloseQueue() : _q = new Set<_HttpConnectionBase>(); | 10 _CloseQueue() : _q = new Set<_HttpConnectionBase>(); |
| (...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2279 | 2279 |
| 2280 | 2280 |
| 2281 class _HttpClientDigestCredentials implements HttpClientDigestCredentials { | 2281 class _HttpClientDigestCredentials implements HttpClientDigestCredentials { |
| 2282 _HttpClientDigestCredentials(this.username, | 2282 _HttpClientDigestCredentials(this.username, |
| 2283 this.password); | 2283 this.password); |
| 2284 | 2284 |
| 2285 _AuthenticationScheme get scheme => _AuthenticationScheme.DIGEST; | 2285 _AuthenticationScheme get scheme => _AuthenticationScheme.DIGEST; |
| 2286 | 2286 |
| 2287 void authorize(_Credentials credentials, HttpClientRequest request) { | 2287 void authorize(_Credentials credentials, HttpClientRequest request) { |
| 2288 // TODO(sgjesse): Implement!!! | 2288 // TODO(sgjesse): Implement!!! |
| 2289 throw new UnsupportedOperationException(); | 2289 throw new UnsupportedError("Digest authentication not yet supported"); |
| 2290 } | 2290 } |
| 2291 | 2291 |
| 2292 String username; | 2292 String username; |
| 2293 String password; | 2293 String password; |
| 2294 } | 2294 } |
| 2295 | 2295 |
| 2296 | 2296 |
| 2297 | 2297 |
| 2298 class _RedirectInfo implements RedirectInfo { | 2298 class _RedirectInfo implements RedirectInfo { |
| 2299 const _RedirectInfo(int this.statusCode, | 2299 const _RedirectInfo(int this.statusCode, |
| 2300 String this.method, | 2300 String this.method, |
| 2301 Uri this.location); | 2301 Uri this.location); |
| 2302 final int statusCode; | 2302 final int statusCode; |
| 2303 final String method; | 2303 final String method; |
| 2304 final Uri location; | 2304 final Uri location; |
| 2305 } | 2305 } |
| OLD | NEW |