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

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

Issue 14055009: Fix errors in previous commit (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 7 /**
8 * HTTP status codes. 8 * HTTP status codes.
9 */ 9 */
10 abstract class HttpStatus { 10 abstract class HttpStatus {
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 * password. Alternatively the API [addProxyCredentials] can be used 970 * password. Alternatively the API [addProxyCredentials] can be used
971 * to set credentials for proxies which require authentication. 971 * to set credentials for proxies which require authentication.
972 */ 972 */
973 static String findProxyFromEnvironment(Uri url, 973 static String findProxyFromEnvironment(Uri url,
974 {Map<String, String> environment}) { 974 {Map<String, String> environment}) {
975 return _HttpClient._findProxyFromEnvironment(url, environment); 975 return _HttpClient._findProxyFromEnvironment(url, environment);
976 } 976 }
977 977
978 /** 978 /**
979 * Sets the function to be called when a proxy is requesting 979 * Sets the function to be called when a proxy is requesting
980 * authentication. The proxy used and and the security realm from 980 * authentication. Information on the proxy in use and the security
981 * the server are passed in the arguments [host], [port] and 981 * realm for the authentication are passed in the arguments [host],
982 * [realm]. 982 * [port] and [realm].
983 * 983 *
984 * The function returns a [Future] which should complete when the 984 * The function returns a [Future] which should complete when the
985 * authentication has been resolved. If credentials cannot be 985 * authentication has been resolved. If credentials cannot be
986 * provided the [Future] should complete with [false]. If 986 * provided the [Future] should complete with [false]. If
987 * credentials are available the function should add these using 987 * credentials are available the function should add these using
988 * [addProxyCredentials] before completing the [Future] with the value 988 * [addProxyCredentials] before completing the [Future] with the value
989 * [true]. 989 * [true].
990 * 990 *
991 * If the [Future] completes with [true] the request will be retried 991 * If the [Future] completes with [true] the request will be retried
992 * using the updated credentials. Otherwise response processing will 992 * using the updated credentials. Otherwise response processing will
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 class RedirectLimitExceededException extends RedirectException { 1298 class RedirectLimitExceededException extends RedirectException {
1299 const RedirectLimitExceededException(List<RedirectInfo> redirects) 1299 const RedirectLimitExceededException(List<RedirectInfo> redirects)
1300 : super("Redirect limit exceeded", redirects); 1300 : super("Redirect limit exceeded", redirects);
1301 } 1301 }
1302 1302
1303 1303
1304 class RedirectLoopException extends RedirectException { 1304 class RedirectLoopException extends RedirectException {
1305 const RedirectLoopException(List<RedirectInfo> redirects) 1305 const RedirectLoopException(List<RedirectInfo> redirects)
1306 : super("Redirect loop detected", redirects); 1306 : super("Redirect loop detected", redirects);
1307 } 1307 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698