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

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

Issue 15268004: Add timeouts to HttpClient. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comment. 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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 * the use of proxies all together set the [findProxy] property to 866 * the use of proxies all together set the [findProxy] property to
867 * [:null:]. 867 * [:null:].
868 * 868 *
869 * HttpClient client = new HttpClient(); 869 * HttpClient client = new HttpClient();
870 * client.findProxy = null; 870 * client.findProxy = null;
871 */ 871 */
872 abstract class HttpClient { 872 abstract class HttpClient {
873 static const int DEFAULT_HTTP_PORT = 80; 873 static const int DEFAULT_HTTP_PORT = 80;
874 static const int DEFAULT_HTTPS_PORT = 443; 874 static const int DEFAULT_HTTPS_PORT = 443;
875 875
876 /**
877 * Get and set the idle timeout of non-active persistent (keep-alive)
878 * connections. The default value is 15 seconds.
879 */
880 Duration idleTimeout;
881
876 factory HttpClient() => new _HttpClient(); 882 factory HttpClient() => new _HttpClient();
877 883
878 /** 884 /**
879 * Opens a HTTP connection. The returned [HttpClientRequest] is used to 885 * Opens a HTTP connection. The returned [HttpClientRequest] is used to
880 * fill in the content of the request before sending it. The 'host' header for 886 * fill in the content of the request before sending it. The 'host' header for
881 * the request will be set to the value [host]:[port]. This can be overridden 887 * the request will be set to the value [host]:[port]. This can be overridden
882 * through the [HttpClientRequest] interface before the request is sent. 888 * through the [HttpClientRequest] interface before the request is sent.
883 * NOTE if [host] is an IP address this will still be set in the 'host' 889 * NOTE if [host] is an IP address this will still be set in the 'host'
884 * header. 890 * header.
885 */ 891 */
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 class RedirectLimitExceededException extends RedirectException { 1370 class RedirectLimitExceededException extends RedirectException {
1365 const RedirectLimitExceededException(List<RedirectInfo> redirects) 1371 const RedirectLimitExceededException(List<RedirectInfo> redirects)
1366 : super("Redirect limit exceeded", redirects); 1372 : super("Redirect limit exceeded", redirects);
1367 } 1373 }
1368 1374
1369 1375
1370 class RedirectLoopException extends RedirectException { 1376 class RedirectLoopException extends RedirectException {
1371 const RedirectLoopException(List<RedirectInfo> redirects) 1377 const RedirectLoopException(List<RedirectInfo> redirects)
1372 : super("Redirect loop detected", redirects); 1378 : super("Redirect loop detected", redirects);
1373 } 1379 }
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