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

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

Issue 14740015: Implementation of HTTP digest authentication (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix analyzer staticerrors Created 7 years, 7 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 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 * 1095 *
1096 * HttpClientRequest request = ... 1096 * HttpClientRequest request = ...
1097 * request.headers.add(HttpHeaders.CONTENT_TYPE, "text/plain"); 1097 * request.headers.add(HttpHeaders.CONTENT_TYPE, "text/plain");
1098 * request.write(...); // Strings written will be ISO-8859-1 encoded. 1098 * request.write(...); // Strings written will be ISO-8859-1 encoded.
1099 * 1099 *
1100 * If an unsupported encoding is used an exception will be thrown if 1100 * If an unsupported encoding is used an exception will be thrown if
1101 * using one of the write methods taking a string. 1101 * using one of the write methods taking a string.
1102 */ 1102 */
1103 abstract class HttpClientRequest implements IOSink { 1103 abstract class HttpClientRequest implements IOSink {
1104 /** 1104 /**
1105 * The method of the request.
1106 */
1107 String get method;
1108
1109 /**
1110 * The uri of the request.
1111 */
1112 Uri get uri;
1113
1114 /**
1105 * Gets and sets the content length of the request. If the size of 1115 * Gets and sets the content length of the request. If the size of
1106 * the request is not known in advance set content length to -1, 1116 * the request is not known in advance set content length to -1,
1107 * which is also the default. 1117 * which is also the default.
1108 */ 1118 */
1109 int contentLength; 1119 int contentLength;
1110 1120
1111 /** 1121 /**
1112 * Returns the request headers. 1122 * Returns the request headers.
1113 */ 1123 */
1114 HttpHeaders get headers; 1124 HttpHeaders get headers;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 /** 1285 /**
1276 * Represents credentials for basic authentication. 1286 * Represents credentials for basic authentication.
1277 */ 1287 */
1278 abstract class HttpClientBasicCredentials extends HttpClientCredentials { 1288 abstract class HttpClientBasicCredentials extends HttpClientCredentials {
1279 factory HttpClientBasicCredentials(String username, String password) => 1289 factory HttpClientBasicCredentials(String username, String password) =>
1280 new _HttpClientBasicCredentials(username, password); 1290 new _HttpClientBasicCredentials(username, password);
1281 } 1291 }
1282 1292
1283 1293
1284 /** 1294 /**
1285 * Represents credentials for digest authentication. 1295 * Represents credentials for digest authentication. Digest
1296 * authentication is only supported for servers using the MD5
1297 * algorithm and quality of protection (qop) of either "none" or
1298 * "auth".
1286 */ 1299 */
1287 abstract class HttpClientDigestCredentials extends HttpClientCredentials { 1300 abstract class HttpClientDigestCredentials extends HttpClientCredentials {
1288 factory HttpClientDigestCredentials(String username, String password) => 1301 factory HttpClientDigestCredentials(String username, String password) =>
1289 new _HttpClientDigestCredentials(username, password); 1302 new _HttpClientDigestCredentials(username, password);
1290 } 1303 }
1291 1304
1292 1305
1293 /** 1306 /**
1294 * Information about an [HttpRequest], [HttpResponse], [HttpClientRequest], or 1307 * Information about an [HttpRequest], [HttpResponse], [HttpClientRequest], or
1295 * [HttpClientResponse] connection. 1308 * [HttpClientResponse] connection.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 class RedirectLimitExceededException extends RedirectException { 1365 class RedirectLimitExceededException extends RedirectException {
1353 const RedirectLimitExceededException(List<RedirectInfo> redirects) 1366 const RedirectLimitExceededException(List<RedirectInfo> redirects)
1354 : super("Redirect limit exceeded", redirects); 1367 : super("Redirect limit exceeded", redirects);
1355 } 1368 }
1356 1369
1357 1370
1358 class RedirectLoopException extends RedirectException { 1371 class RedirectLoopException extends RedirectException {
1359 const RedirectLoopException(List<RedirectInfo> redirects) 1372 const RedirectLoopException(List<RedirectInfo> redirects)
1360 : super("Redirect loop detected", redirects); 1373 : super("Redirect loop detected", redirects);
1361 } 1374 }
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