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

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

Issue 15821013: Remove references to RedirectLimitExceededException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « pkg/http/test/utils.dart ('k') | no next file » | 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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 * 1187 *
1188 * All headers added to the request will be added to the redirection 1188 * All headers added to the request will be added to the redirection
1189 * request(s). However, any body send with the request will not be 1189 * request(s). However, any body send with the request will not be
1190 * part of the redirection request(s). 1190 * part of the redirection request(s).
1191 */ 1191 */
1192 bool followRedirects; 1192 bool followRedirects;
1193 1193
1194 /** 1194 /**
1195 * Set this property to the maximum number of redirects to follow 1195 * Set this property to the maximum number of redirects to follow
1196 * when [followRedirects] is [:true:]. If this number is exceeded the 1196 * when [followRedirects] is [:true:]. If this number is exceeded the
1197 * [onError] callback will be called with a [RedirectLimitExceeded] 1197 * [onError] callback will be called with a [RedirectException].
1198 * exception. The default value is 5. 1198 *
1199 * The default value is 5.
1199 */ 1200 */
1200 int maxRedirects; 1201 int maxRedirects;
1201 1202
1202 /** 1203 /**
1203 * Get information about the client connection. Returns [null] if the socket 1204 * Get information about the client connection. Returns [null] if the socket
1204 * is not available. 1205 * is not available.
1205 */ 1206 */
1206 HttpConnectionInfo get connectionInfo; 1207 HttpConnectionInfo get connectionInfo;
1207 } 1208 }
1208 1209
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 1385
1385 class RedirectException implements HttpException { 1386 class RedirectException implements HttpException {
1386 final String message; 1387 final String message;
1387 final List<RedirectInfo> redirects; 1388 final List<RedirectInfo> redirects;
1388 1389
1389 const RedirectException(String this.message, 1390 const RedirectException(String this.message,
1390 List<RedirectInfo> this.redirects); 1391 List<RedirectInfo> this.redirects);
1391 1392
1392 String toString() => "RedirectException: $message"; 1393 String toString() => "RedirectException: $message";
1393 } 1394 }
OLDNEW
« no previous file with comments | « pkg/http/test/utils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698